pwn 0.5.482 → 0.5.483
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/pwn/plugins/repl.rb +9 -10
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d9089cde1713e79574b561791fc9e52331efdd9d4401f92f84a3cd78d3e9baa5
|
|
4
|
+
data.tar.gz: 810569d7a49f6ce75871431eafd90d5ba6377c8c0f8ba3031e82b07e1233264b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6fcb0e4057e72824d1c18a3af03dc9826733ccb34d5e8153b1085850a3ce119915dedcb70d5bd172b91358c65d2e273d3086cccead5a1fe0c20acd98f9947b5f
|
|
7
|
+
data.tar.gz: c4543ab1b1ec9db5841b85f283353da453c971001b7f6a013a239afde1cdc715f07b80f54000b18c3faa207dfa73c7ba929c5f5d4ca89f61620669ebafb0a356
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ $ cd /opt/pwn
|
|
|
37
37
|
$ ./install.sh
|
|
38
38
|
$ ./install.sh ruby-gem
|
|
39
39
|
$ pwn
|
|
40
|
-
pwn[v0.5.
|
|
40
|
+
pwn[v0.5.483]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.4.4@pwn
|
|
|
52
52
|
$ gem uninstall --all --executables pwn
|
|
53
53
|
$ gem install --verbose pwn
|
|
54
54
|
$ pwn
|
|
55
|
-
pwn[v0.5.
|
|
55
|
+
pwn[v0.5.483]:001 >>> PWN.help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
If you're using a multi-user install of RVM do:
|
|
@@ -62,7 +62,7 @@ $ rvm use ruby-3.4.4@pwn
|
|
|
62
62
|
$ rvmsudo gem uninstall --all --executables pwn
|
|
63
63
|
$ rvmsudo gem install --verbose pwn
|
|
64
64
|
$ pwn
|
|
65
|
-
pwn[v0.5.
|
|
65
|
+
pwn[v0.5.483]:001 >>> PWN.help
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
|
data/lib/pwn/plugins/repl.rb
CHANGED
|
@@ -594,7 +594,7 @@ module PWN
|
|
|
594
594
|
end
|
|
595
595
|
last_drawn = current_line
|
|
596
596
|
end
|
|
597
|
-
sleep 0.
|
|
597
|
+
sleep 0.0001
|
|
598
598
|
end
|
|
599
599
|
end
|
|
600
600
|
echo_thread.abort_on_exception = false
|
|
@@ -624,7 +624,7 @@ module PWN
|
|
|
624
624
|
rx_win = PWN.const_get(:MeshRxWin)
|
|
625
625
|
mutex = PWN.const_get(:MeshMutex)
|
|
626
626
|
|
|
627
|
-
from = packet[:node_id_from]
|
|
627
|
+
from = packet[:node_id_from].to_s.ljust(9, ' ')
|
|
628
628
|
absolute_topic = "#{region}/#{topic.gsub('#', from)}"
|
|
629
629
|
to = packet[:node_id_to]
|
|
630
630
|
rx_text = decoded[:payload]
|
|
@@ -633,26 +633,25 @@ module PWN
|
|
|
633
633
|
# Select a random color pair different from the last used one
|
|
634
634
|
colors_arr = PWN.const_get(:MeshColors)
|
|
635
635
|
last_pair = PWN.const_get(:MeshLastPair)
|
|
636
|
-
|
|
637
|
-
|
|
636
|
+
pair = last_pair
|
|
637
|
+
unless last_from == from
|
|
638
|
+
PWN.send(:remove_const, :MeshLastPair)
|
|
638
639
|
pair_choices = colors_arr.reject { |c| c == last_pair }
|
|
639
640
|
pair = pair_choices.sample
|
|
640
|
-
|
|
641
|
-
pair = last_pair
|
|
641
|
+
PWN.const_set(:MeshLastPair, pair)
|
|
642
642
|
end
|
|
643
|
-
PWN.const_set(:MeshLastPair, pair)
|
|
644
643
|
rx_win.attron(Curses.color_pair(pair) | Curses::A_REVERSE)
|
|
645
644
|
|
|
646
645
|
current_line = "\n[#{ts}] [RX] #{absolute_topic} >>> #{rx_text}"
|
|
647
646
|
current_line = "\n[#{ts}] [RX][DM INTERCEPTED] #{absolute_topic} to: #{to} >>> #{rx_text}" unless to == '!ffffffff'
|
|
648
647
|
|
|
649
648
|
mutex.synchronize do
|
|
650
|
-
inner_width = Curses.cols
|
|
649
|
+
inner_width = Curses.cols
|
|
651
650
|
content = current_line.sub(/\A\n/, '')
|
|
652
651
|
segments = content.scan(/.{1,#{inner_width}}/)
|
|
653
652
|
segments.each do |seg|
|
|
654
|
-
rx_win.addstr("\n")
|
|
655
|
-
rx_win.setpos(rx_win.cury,
|
|
653
|
+
# rx_win.addstr("\n")
|
|
654
|
+
rx_win.setpos(rx_win.cury, 0)
|
|
656
655
|
line = seg.ljust(inner_width)
|
|
657
656
|
rx_win.addstr(line)
|
|
658
657
|
end
|
data/lib/pwn/version.rb
CHANGED