pwn 0.4.996 → 0.4.997
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/README.md +3 -3
- data/lib/pwn/plugins/xxd.rb +14 -22
- data/lib/pwn/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00e2539631c3d4ff5bbbeb46cc8d8cd485bd1896e886ae09a64eba3e13b2b3da
|
4
|
+
data.tar.gz: 42b305a53a3ba7ec0f5bedb66b2fdb75a9a4141645da5ba6c8e24b6fafc3afe4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12bee8b0dca7ff774c85918e2a0a0cba4ea697aff4e1056afca2c9c8be1fc0d4076264e9d1886ddb32e8b5ed0c377fef021a8cdff9063948cfa330add77eb93c
|
7
|
+
data.tar.gz: 6bf5559a1035b1e863a63e81eb66424f4d9a419e6a6f1cb6bc21e9fedc7c48dcc82c2a72f176e20f99c3916a14c118a2d7e6f265dbd9b31afbf7b98b341310e0
|
data/Gemfile
CHANGED
@@ -52,7 +52,7 @@ gem 'net-openvpn', '0.8.7'
|
|
52
52
|
gem 'net-smtp', '0.4.0.1'
|
53
53
|
gem 'nexpose', '7.3.0'
|
54
54
|
gem 'nokogiri', '1.16.0'
|
55
|
-
gem 'nokogiri-diff', '0.
|
55
|
+
gem 'nokogiri-diff', '0.3.0'
|
56
56
|
gem 'oily_png', '1.2.1'
|
57
57
|
gem 'open3', '0.2.1'
|
58
58
|
gem 'os', '1.1.4'
|
@@ -76,7 +76,7 @@ gem 'rubocop', '1.60.2'
|
|
76
76
|
gem 'rubocop-rake', '0.6.0'
|
77
77
|
gem 'rubocop-rspec', '2.26.1'
|
78
78
|
gem 'ruby-audio', '1.6.1'
|
79
|
-
gem 'ruby-nmap', '1.0.
|
79
|
+
gem 'ruby-nmap', '1.0.3'
|
80
80
|
gem 'ruby-saml', '1.16.0'
|
81
81
|
gem 'rvm', '1.11.3.9'
|
82
82
|
gem 'savon', '2.14.0'
|
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.4.
|
40
|
+
pwn[v0.4.997]:001 >>> PWN.help
|
41
41
|
```
|
42
42
|
|
43
43
|
[![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.3.0@pwn
|
|
52
52
|
$ gem uninstall --all --executables pwn
|
53
53
|
$ gem install --verbose pwn
|
54
54
|
$ pwn
|
55
|
-
pwn[v0.4.
|
55
|
+
pwn[v0.4.997]: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.3.0@pwn
|
|
62
62
|
$ rvmsudo gem uninstall --all --executables pwn
|
63
63
|
$ rvmsudo gem install --verbose pwn
|
64
64
|
$ pwn
|
65
|
-
pwn[v0.4.
|
65
|
+
pwn[v0.4.997]: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/xxd.rb
CHANGED
@@ -33,28 +33,20 @@ module PWN
|
|
33
33
|
io.write(fmt_row)
|
34
34
|
|
35
35
|
if hashed
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
# TODO: address last line if the hashed_hexdump[this_key][:hex] length is less than 8
|
51
|
-
if hhh_len > 8
|
52
|
-
mov_to_ascii = (hhh_len - 8) * -1
|
53
|
-
last_ascii = hashed_hexdump[this_key][:ascii]
|
54
|
-
hashed_hexdump[this_key][:hex][-1] = "#{hashed_hexdump[this_key][:hex].last}\s"
|
55
|
-
hashed_hexdump[this_key][:hex][8] = "\s#{hashed_hexdump[this_key][:hex][8]}"
|
56
|
-
hashed_hexdump[this_key][:ascii] = "#{hashed_hexdump[this_key][:hex][mov_to_ascii..-1].join(' ')}#{last_ascii}"
|
57
|
-
hashed_hexdump[this_key][:hex] = hashed_hexdump[this_key][:hex][0..7]
|
36
|
+
this_key = fmt_row.chars[0..7].join
|
37
|
+
if fmt_row.length == 68
|
38
|
+
hashed_hexdump[this_key] = {
|
39
|
+
hex: fmt_row.chars[10..48].join.split,
|
40
|
+
ascii: fmt_row.chars[51..-2].join
|
41
|
+
}
|
42
|
+
else
|
43
|
+
rem_len = fmt_row[10..-1].length
|
44
|
+
hex_len = (rem_len / 3) * 2
|
45
|
+
ascii_len = rem_len / 3
|
46
|
+
hashed_hexdump[this_key] = {
|
47
|
+
hex: fmt_row.chars[10..(10 + hex_len)].join.split,
|
48
|
+
ascii: fmt_row.chars[(10 + hex_len + 1)..-1].join
|
49
|
+
}
|
58
50
|
end
|
59
51
|
end
|
60
52
|
end
|
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.4.
|
4
|
+
version: 0.4.997
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
@@ -576,14 +576,14 @@ dependencies:
|
|
576
576
|
requirements:
|
577
577
|
- - '='
|
578
578
|
- !ruby/object:Gem::Version
|
579
|
-
version: 0.
|
579
|
+
version: 0.3.0
|
580
580
|
type: :runtime
|
581
581
|
prerelease: false
|
582
582
|
version_requirements: !ruby/object:Gem::Requirement
|
583
583
|
requirements:
|
584
584
|
- - '='
|
585
585
|
- !ruby/object:Gem::Version
|
586
|
-
version: 0.
|
586
|
+
version: 0.3.0
|
587
587
|
- !ruby/object:Gem::Dependency
|
588
588
|
name: oily_png
|
589
589
|
requirement: !ruby/object:Gem::Requirement
|
@@ -912,14 +912,14 @@ dependencies:
|
|
912
912
|
requirements:
|
913
913
|
- - '='
|
914
914
|
- !ruby/object:Gem::Version
|
915
|
-
version: 1.0.
|
915
|
+
version: 1.0.3
|
916
916
|
type: :runtime
|
917
917
|
prerelease: false
|
918
918
|
version_requirements: !ruby/object:Gem::Requirement
|
919
919
|
requirements:
|
920
920
|
- - '='
|
921
921
|
- !ruby/object:Gem::Version
|
922
|
-
version: 1.0.
|
922
|
+
version: 1.0.3
|
923
923
|
- !ruby/object:Gem::Dependency
|
924
924
|
name: ruby-saml
|
925
925
|
requirement: !ruby/object:Gem::Requirement
|