pwn 0.5.24 → 0.5.25
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 +2 -4
- 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: dadd39787409b581c7e107e807d9dc488d9ff6f030b3f8267cf97181c076ea94
|
4
|
+
data.tar.gz: cbf8770e949609afa29736c2035aa0d272e2a64c728630a46771767e5c13c2c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e74854f00d56728fd72baa1129d863e15577c93974b1fc471a57fe81b923badba073f915eb9fe25b3dfa643669166f65df113f5d9015a5698eb2e097ad6fec8
|
7
|
+
data.tar.gz: cfd9e46e1d2dfd58b40d42f0e85807dc37bf204ca642e1533363f2bb816ba792db26f594fbf12eb5251b54e4bade76d1e0eb6f6d4f91e1b4c219dd13183c3ccb
|
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.25]: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.25]: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.25]: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
@@ -16,7 +16,7 @@ module PWN
|
|
16
16
|
|
17
17
|
public_class_method def self.opcodes_to_asm(opts = {})
|
18
18
|
opcodes = opts[:opcodes]
|
19
|
-
arch = opts[:arch] ||=
|
19
|
+
arch = opts[:arch] ||= PWN::Plugins::DetectOS.arch
|
20
20
|
endian = opts[:endian] ||= :little
|
21
21
|
|
22
22
|
case arch
|
@@ -35,8 +35,6 @@ module PWN
|
|
35
35
|
Metasm::Shellcode.disassemble(arch_obj, opcodes).to_s
|
36
36
|
rescue StandardError => e
|
37
37
|
raise e
|
38
|
-
ensure
|
39
|
-
opcodes_tmp.unlink if File.exist?(opcodes_tmp.path)
|
40
38
|
end
|
41
39
|
|
42
40
|
# Supported Method Parameters::
|
@@ -48,7 +46,7 @@ module PWN
|
|
48
46
|
|
49
47
|
public_class_method def self.asm_to_opcodes(opts = {})
|
50
48
|
asm = opts[:asm]
|
51
|
-
arch = opts[:arch] ||=
|
49
|
+
arch = opts[:arch] ||= PWN::Plugins::DetectOS.arch
|
52
50
|
endian = opts[:endian] ||= :little
|
53
51
|
|
54
52
|
case arch
|
data/lib/pwn/version.rb
CHANGED