pwn 0.5.255 → 0.5.256
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/bin/pwn_serial_msr206 +15 -13
- 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: ec288d693aeb1ac636b660f94c0eb76b38af996b1da19ee254658ca5abfe2f0b
|
4
|
+
data.tar.gz: 8273e39021d56970afdd9b10269411c6b1273f2d03efb712d5a36b50c91befc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3b92960031463e117224044902eed1d8b83d2a76e9013fc7dc35e5f5fc1e05fd5e538a758df78c23a6d8ab7af2d511a344919fc03c42c1bdcaf61333f1f7dd5
|
7
|
+
data.tar.gz: 55fd07ad96fe4680093d33c42365f3b888d88e74ec4d74afed22ccb494cf7f0954a62d4aa9889ac8d3811f3033020f57e5301cb13f4c65eb4004e7b18f8afe25
|
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.256]:001 >>> PWN.help
|
41
41
|
```
|
42
42
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.4.1@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.256]: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.1@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.256]: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/bin/pwn_serial_msr206
CHANGED
@@ -36,18 +36,20 @@ OptionParser.new do |options|
|
|
36
36
|
end
|
37
37
|
end.parse!
|
38
38
|
|
39
|
-
if opts.empty?
|
40
|
-
|
41
|
-
|
42
|
-
end
|
39
|
+
# if opts.empty?
|
40
|
+
# puts `#{File.basename($PROGRAM_NAME)} --help`
|
41
|
+
# exit 1
|
42
|
+
# end
|
43
43
|
|
44
44
|
begin
|
45
|
-
block_dev = opts[:block_dev]
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
45
|
+
block_dev = opts[:block_dev] ||= '/dev/ttyUSB0'
|
46
|
+
raise "ERROR: Block device not found: #{block_dev}" unless File.exist?(block_dev)
|
47
|
+
|
48
|
+
baud = opts[:baud] ||= 9_600
|
49
|
+
data_bits = opts[:data_bits] ||= 8
|
50
|
+
stop_bits = opts[:stop_bits] ||= 1
|
51
|
+
parity = opts[:parity] ||= 'none'
|
52
|
+
flow_control = opts[:flow_control] ||= 'soft'
|
51
53
|
|
52
54
|
msr206_obj = PWN::Plugins::MSR206.connect(
|
53
55
|
block_dev: block_dev,
|
@@ -59,9 +61,9 @@ begin
|
|
59
61
|
)
|
60
62
|
|
61
63
|
puts "- Welcome to #{File.basename($PROGRAM_NAME)} -"
|
62
|
-
puts "Connected via: #{block_dev} @ #{msr206_obj[:serial_conn].modem_params}"
|
63
|
-
puts "Flow Control: #{msr206_obj[:serial_conn].flow_control}"
|
64
|
-
puts "Signals: #{msr206_obj[:serial_conn].signals}"
|
64
|
+
# puts "Connected via: #{block_dev} @ #{msr206_obj[:serial_conn].modem_params}"
|
65
|
+
# puts "Flow Control: #{msr206_obj[:serial_conn].flow_control}"
|
66
|
+
# puts "Signals: #{msr206_obj[:serial_conn].signals}"
|
65
67
|
|
66
68
|
exec_resp = PWN::Plugins::MSR206.exec(
|
67
69
|
msr206_obj: msr206_obj,
|
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.256
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
@@ -617,14 +617,14 @@ dependencies:
|
|
617
617
|
requirements:
|
618
618
|
- - '='
|
619
619
|
- !ruby/object:Gem::Version
|
620
|
-
version: 1.18.
|
620
|
+
version: 1.18.8
|
621
621
|
type: :runtime
|
622
622
|
prerelease: false
|
623
623
|
version_requirements: !ruby/object:Gem::Requirement
|
624
624
|
requirements:
|
625
625
|
- - '='
|
626
626
|
- !ruby/object:Gem::Version
|
627
|
-
version: 1.18.
|
627
|
+
version: 1.18.8
|
628
628
|
- !ruby/object:Gem::Dependency
|
629
629
|
name: nokogiri-diff
|
630
630
|
requirement: !ruby/object:Gem::Requirement
|