pwn 0.5.157 → 0.5.158
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/ip_info.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: 17128fbd32d71a091544f76fca85f229d73169803bc91f2c46f35b31edc1d4fe
|
4
|
+
data.tar.gz: 546a25557d99d85673b9e7e2c2843a87166683120754c2728ba87bdd6799fe25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bf82dd3a36906f3218e489d35747821caf709bbb52e549731e0c2b2fe10e369f93ba990f6bd3c0f7305b4704cf7e3e1ce821b2d1da19e8ea6ab8dc9d85bdd80
|
7
|
+
data.tar.gz: 203ebcfae33475985d2f7b6275a2c8bd1c4c2f302025fccd2c3c86f81faa50a7360fb7c5e201b51b4a578166759638020b8ca30ed436bc4c0a9b298749c02211
|
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.158]: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.1@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.158]: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.1@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.158]: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/ip_info.rb
CHANGED
@@ -214,9 +214,9 @@ module PWN
|
|
214
214
|
raise e
|
215
215
|
ensure
|
216
216
|
# Strip trailing comma and close JSON array
|
217
|
-
final_results = File.readlines(results_file)
|
218
|
-
# Strip trailing comma from last line
|
219
|
-
last_line = final_results[-1]
|
217
|
+
final_results = File.readlines(results_file).uniq
|
218
|
+
# Strip trailing newline and comma from last line
|
219
|
+
last_line = final_results[-1].chomp.chomp(',')
|
220
220
|
final_results[-1] = last_line
|
221
221
|
File.write(results_file, "#{final_results.join}\n]")
|
222
222
|
end
|
data/lib/pwn/version.rb
CHANGED