pwn 0.5.222 → 0.5.223
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/repl.rb +7 -7
- 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: f62a1b15820e6b9a94bbd33ee42d416c4e15e8c19646a5f63143a148a83f5802
|
4
|
+
data.tar.gz: 067743e36ba002ef16266a0c97de85c8eff3d80b385698898c1cf9268bf3157c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7eb4993d27370f19fe5965981e385ab05eb366dfa53c1ca3154980e8c2cbe304b8c45e9b09220fc8c2d416efdb9edfd7284ee2201e772156de79e1a210532ee
|
7
|
+
data.tar.gz: 67e3fe1caaf2f97af856679e2d9d7ef730518dded9db7b6f085715678a23522441ddae467445a97677de6517fc463ded1b9dfeb3846c4d6884198226cb30a4f3
|
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.223]: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.5@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.223]: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.5@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.223]: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/repl.rb
CHANGED
@@ -31,13 +31,8 @@ module PWN
|
|
31
31
|
dchars = "\001\e[33m\002***\001\e[0m\002" if mode == :splat
|
32
32
|
|
33
33
|
if pi.config.pwn_asm
|
34
|
-
arch = pi.config.pwn_asm_arch
|
34
|
+
arch = pi.config.pwn_asm_arch
|
35
35
|
endian = pi.config.pwn_asm_endian
|
36
|
-
if endian.nil? && [1].pack('I') == [1].pack('N')
|
37
|
-
endian = 'big'
|
38
|
-
else
|
39
|
-
endian = 'little'
|
40
|
-
end
|
41
36
|
|
42
37
|
pi.config.prompt_name = "pwn.asm:#{arch}/#{endian}"
|
43
38
|
name = "\001\e[1m\002\001\e[37m\002#{pi.config.prompt_name}\001\e[0m\002"
|
@@ -554,10 +549,15 @@ module PWN
|
|
554
549
|
pi.config.pwn_ai_temp = pi.config.p[ai_engine][:temp]
|
555
550
|
Pry.config.pwn_ai_temp = pi.config.pwn_ai_temp
|
556
551
|
|
557
|
-
pi.config.pwn_asm_arch = pi.config.p[:asm][:arch]
|
552
|
+
pi.config.pwn_asm_arch = pi.config.p[:asm][:arch] ||= PWN::Plugins::DetectOS.arch
|
558
553
|
Pry.config.pwn_asm_arch = pi.config.pwn_asm_arch
|
559
554
|
|
560
555
|
pi.config.pwn_asm_endian = pi.config.p[:asm][:endian]
|
556
|
+
if pi.config.pwn_asm_endian.nil? && [1].pack('I') == [1].pack('N')
|
557
|
+
pi.config.pwn_asm_endian = 'big'
|
558
|
+
else
|
559
|
+
pi.config.pwn_asm_endian = 'little'
|
560
|
+
end
|
561
561
|
Pry.config.pwn_asm_endian = pi.config.pwn_asm_endian
|
562
562
|
|
563
563
|
pi.config.pwn_irc = pi.config.p[:irc]
|
data/lib/pwn/version.rb
CHANGED