pwn 0.5.32 → 0.5.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/pwn/plugins/assembly.rb +4 -3
- 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: b53951502ff747ce5dcb1b0dea5ffdfc2c48aaad64af272c1e49091c26a27c23
|
4
|
+
data.tar.gz: 1f7e8b51e925ffd5df4a7cea3cab15817c2bfebdbf79c538c2408cfe844c98e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64602514e14c0e6984499480911de341caeca50804b27e637d9dd15310138bbfc2b2d9861b5a42bcf3e71f792f9119730b54e9ad1e7ff63b665e614c5057b795
|
7
|
+
data.tar.gz: 12c4215d65ddfc8c607015003fa8fc156157892666e3145034cf61f29c7dc9f3a3fee000d9c7e48bb505b51c5b1e3db053deced00a085d48f80fe359320ec383
|
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.33]: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.5.
|
55
|
+
pwn[v0.5.33]: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.5.
|
65
|
+
pwn[v0.5.33]: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/assembly.rb
CHANGED
@@ -34,14 +34,15 @@ module PWN
|
|
34
34
|
raise "Unsupported architecture: #{arch}"
|
35
35
|
end
|
36
36
|
|
37
|
+
# TOOD: Fix this
|
37
38
|
# If opcodes appear to be '"90", "90", "90"' then convert to "\x90\x90\x90"
|
38
|
-
opcodes = opcodes.split(',').map { |x| format('\x%02x', x.gsub('"', '').to_i(16)) }.join if opcodes.include?('"') && opcodes.include?(',')
|
39
|
+
# opcodes = opcodes.split(',').map { |x| format('\x%02x', x.gsub('"', '').to_i(16)) }.join if opcodes.include?('"') && opcodes.include?(',')
|
39
40
|
|
40
41
|
# If opcodes appear to be '90 90 90' then convert to "\x90\x90\x90"
|
41
|
-
opcodes = opcodes.split.map { |x| format('\x%02x', x.to_i(16)) }.join if opcodes.include?(' ')
|
42
|
+
# opcodes = opcodes.split.map { |x| format('\x%02x', x.to_i(16)) }.join if opcodes.include?(' ')
|
42
43
|
|
43
44
|
# If opcodes appear to be '909090' then convert to "\x90\x90\x90"
|
44
|
-
opcodes = opcodes.chars.each_slice(2).map(&:join).map { |x| format('\x%02x', x.to_i(16)) }.join if opcodes.length.even?
|
45
|
+
# opcodes = opcodes.chars.each_slice(2).map(&:join).map { |x| format('\x%02x', x.to_i(16)) }.join if opcodes.length.even?
|
45
46
|
|
46
47
|
File.binwrite(pwn_asm_tmp.path, opcodes)
|
47
48
|
`objdump -D -b binary -m #{arch} -M intel --endian #{endian} #{pwn_asm_tmp.path}`
|
data/lib/pwn/version.rb
CHANGED