pwn 0.5.483 → 0.5.485
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/Gemfile +1 -1
- data/README.md +3 -3
- data/lib/pwn/plugins/repl.rb +8 -6
- data/lib/pwn/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f662cf26231142d1817f7d294a040e75dd4251b5cde89db91a29fedbe4016a56
|
|
4
|
+
data.tar.gz: 9e5a446bfadf5e27f9f8f5337269f0ddc25f7efaa271549b7ff435c7eb1bfb33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12c6f3426b3ade8f9149c3de4f741bbd776290471ac1ab24427ba4e690eb2578eb3d420427b5682523c807a1cca8f5f129307ba6f58556872f88935c9b9ead3b
|
|
7
|
+
data.tar.gz: fbafe45d436da4952b621d39e3ff9ef65b7252dba8c1bdcb11a9b26418795e88e942323315742e4ccda09621757568215464ed20acce71d00587256f74949871
|
data/Gemfile
CHANGED
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.485]: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.485]: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.485]: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
|
@@ -509,6 +509,7 @@ module PWN
|
|
|
509
509
|
|
|
510
510
|
rx_height = Curses.lines - 4
|
|
511
511
|
rx_win = Curses::Window.new(rx_height, Curses.cols, 0, 0)
|
|
512
|
+
# TODO: Scrollable but should stay below header_line
|
|
512
513
|
rx_win.scrollok(true)
|
|
513
514
|
rx_win.nodelay = true
|
|
514
515
|
rx_win.attron(Curses.color_pair(cyan) | Curses::A_BOLD)
|
|
@@ -531,7 +532,8 @@ module PWN
|
|
|
531
532
|
|
|
532
533
|
rx_win.refresh
|
|
533
534
|
|
|
534
|
-
|
|
535
|
+
tx_height = rx_height - 1
|
|
536
|
+
tx_win = Curses::Window.new(4, Curses.cols, tx_height, 0)
|
|
535
537
|
tx_win.scrollok(false)
|
|
536
538
|
tx_win.nodelay = true
|
|
537
539
|
tx_win.refresh
|
|
@@ -624,11 +626,11 @@ module PWN
|
|
|
624
626
|
rx_win = PWN.const_get(:MeshRxWin)
|
|
625
627
|
mutex = PWN.const_get(:MeshMutex)
|
|
626
628
|
|
|
627
|
-
from = packet[:node_id_from].
|
|
629
|
+
from = "#{packet[:node_id_from]} ".ljust(9, ' ')
|
|
628
630
|
absolute_topic = "#{region}/#{topic.gsub('#', from)}"
|
|
629
631
|
to = packet[:node_id_to]
|
|
630
632
|
rx_text = decoded[:payload]
|
|
631
|
-
ts = Time.now.strftime('%H:%M:%S%z')
|
|
633
|
+
ts = Time.now.strftime('%Y-%m-%d %H:%M:%S%z')
|
|
632
634
|
|
|
633
635
|
# Select a random color pair different from the last used one
|
|
634
636
|
colors_arr = PWN.const_get(:MeshColors)
|
|
@@ -642,9 +644,9 @@ module PWN
|
|
|
642
644
|
end
|
|
643
645
|
rx_win.attron(Curses.color_pair(pair) | Curses::A_REVERSE)
|
|
644
646
|
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
647
|
+
to_label = 'To'
|
|
648
|
+
to_label = 'DM' unless to == '!ffffffff'
|
|
649
|
+
current_line = "\nDate: #{ts}\nFrom: #{from}\n#{to_label}: #{to}\nTopic: #{absolute_topic}\n> #{rx_text}"
|
|
648
650
|
mutex.synchronize do
|
|
649
651
|
inner_width = Curses.cols
|
|
650
652
|
content = current_line.sub(/\A\n/, '')
|
data/lib/pwn/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pwn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.485
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 0day Inc.
|
|
@@ -533,14 +533,14 @@ dependencies:
|
|
|
533
533
|
requirements:
|
|
534
534
|
- - '='
|
|
535
535
|
- !ruby/object:Gem::Version
|
|
536
|
-
version: 0.0.
|
|
536
|
+
version: 0.0.136
|
|
537
537
|
type: :runtime
|
|
538
538
|
prerelease: false
|
|
539
539
|
version_requirements: !ruby/object:Gem::Requirement
|
|
540
540
|
requirements:
|
|
541
541
|
- - '='
|
|
542
542
|
- !ruby/object:Gem::Version
|
|
543
|
-
version: 0.0.
|
|
543
|
+
version: 0.0.136
|
|
544
544
|
- !ruby/object:Gem::Dependency
|
|
545
545
|
name: metasm
|
|
546
546
|
requirement: !ruby/object:Gem::Requirement
|