pwn 0.5.16 → 0.5.17
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 +3 -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: 699a38ae80f88b75aad0a4dd1d8a76251572be9ce6ce99603506a946d982c88b
|
4
|
+
data.tar.gz: 457c82f3d230d8b99460e2742167087a914bd06f1cb0ffb9d27fef32530c0330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1d883a3079b28649e51609c04bd3e7c7dc78580a8ba6c79e3e8e6c768bc8f58d42d304b5ddbbe2882c5597b282c2e22bb119b34d0f3b3c820d7482a3c0e481d
|
7
|
+
data.tar.gz: 76273576715746ac2a15d16f7b92ab93822a89e607d3c8f0343b2a1f8416d1907255765830a2a37262145aed378f2e8d4e1dbd20ba188e21bb64475a70b7c3c8
|
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.17]: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.17]: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.17]: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
@@ -12,13 +12,13 @@ module PWN
|
|
12
12
|
# arch: 'optional - architecture (defaults to PWN::Plugins::DetectOS.arch)'
|
13
13
|
# )
|
14
14
|
|
15
|
-
public_class_method def self.
|
15
|
+
public_class_method def self.opcodes_to_asm(opts = {})
|
16
16
|
opcodes = opts[:opcodes]
|
17
17
|
arch = opts[:arch] ||= PWN::Plugins::DetectOS.arch
|
18
18
|
|
19
19
|
opcodes_tmp = Tempfile.new('pwn_opcodes')
|
20
20
|
File.binwrite(opcodes_tmp.path, opcodes)
|
21
|
-
asm = `objdump -M intel -b binary -
|
21
|
+
asm = `objdump -M intel -b binary -D #{opcodes_tmp.path}`
|
22
22
|
opcodes_tmp.unlink
|
23
23
|
|
24
24
|
asm
|
@@ -43,7 +43,7 @@ module PWN
|
|
43
43
|
asm_tmp.close
|
44
44
|
|
45
45
|
system('as', '-o', "#{asm_tmp.path}.o", asm_tmp.path)
|
46
|
-
opcodes = `objdump -
|
46
|
+
opcodes = `objdump -D #{asm_tmp.path}.o`
|
47
47
|
asm_tmp.unlink
|
48
48
|
|
49
49
|
opcodes
|
data/lib/pwn/version.rb
CHANGED