pwn 0.5.20 → 0.5.21
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 +6 -5
- 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: aad6799fdb7bce39796565b9aa0f077654d394c1b3f0a2c1bcca99a5ce578a83
|
4
|
+
data.tar.gz: cde21f9dbe0c2d8060a437352ca7935fc4d71fe9d66cc4bd8d05010d5c212c9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1cd4d4a140eabbcbc4c7c088f9242783484887f34d0173a08a19d31f1f3594dec78a85ac5eaa3f244af9fa267f20e8977d90f620827f8e87dab373ed1494513
|
7
|
+
data.tar.gz: ce5493069b272ccde1df0319dbba06d1400b457a55a6b32d8656b04039caccec0145b1b10efe1af09d8e1eb539ca47050aebb8d106e768c0fd8fdad186cf59b9
|
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.21]: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.21]: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.21]: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
@@ -7,8 +7,8 @@ module PWN
|
|
7
7
|
# This plugin converts images to readable text
|
8
8
|
module Assembly
|
9
9
|
# Supported Method Parameters::
|
10
|
-
# PWN::Plugins::Assembly.
|
11
|
-
# opcodes: 'required - hex escaped opcode(s) (e.g.
|
10
|
+
# PWN::Plugins::Assembly.opcodes_to_asm(
|
11
|
+
# opcodes: 'required - hex escaped opcode(s) (e.g. "\x90\x90\x90")'
|
12
12
|
# )
|
13
13
|
|
14
14
|
public_class_method def self.opcodes_to_asm(opts = {})
|
@@ -24,7 +24,7 @@ module PWN
|
|
24
24
|
end
|
25
25
|
|
26
26
|
# Supported Method Parameters::
|
27
|
-
# PWN::Plugins::Assembly.
|
27
|
+
# PWN::Plugins::Assembly.asm_to_opcodes(
|
28
28
|
# asm: 'required - assembly instruction(s) (e.g. 'nop\nnop\nnop\njmp rsp\n)'
|
29
29
|
# )
|
30
30
|
|
@@ -43,7 +43,8 @@ module PWN
|
|
43
43
|
rescue StandardError => e
|
44
44
|
raise e
|
45
45
|
ensure
|
46
|
-
|
46
|
+
files = [asm_tmp.path, asm_tmp_o]
|
47
|
+
FileUtils.rm_f(files) if File.exist?(asm_tmp.path)
|
47
48
|
end
|
48
49
|
|
49
50
|
# Author(s):: 0day Inc. <request.pentest@0dayinc.com>
|
@@ -59,7 +60,7 @@ module PWN
|
|
59
60
|
public_class_method def self.help
|
60
61
|
puts "USAGE:
|
61
62
|
#{self}.opcodes_to_asm(
|
62
|
-
opcodes: 'required - hex escaped opcode(s) (e.g.
|
63
|
+
opcodes: 'required - hex escaped opcode(s) (e.g. \"\\x90\\x90\\x90\")'
|
63
64
|
)
|
64
65
|
|
65
66
|
#{self}.asm_to_opcodes(
|
data/lib/pwn/version.rb
CHANGED