pwn 0.5.322 → 0.5.323
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/pwn/plugins/burp_suite.rb +7 -4
- data/lib/pwn/version.rb +1 -1
- data/packer/provisioners/burpsuite.sh +6 -5
- 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: 489d28655a398392c8563966dfe04887f65edf719b799a767e667b3b0851c033
|
4
|
+
data.tar.gz: 1d8e8e536b39b57b82570f87251111996e3882b1ca6f592381227fb09ebf0840
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2bd7b7a743a9ceea59b67396389314d344cd7d93e04c32eacb33d6ad76b3c72e0f0981ebaa79170c99829f33e8decfa8dec959ede5d71d02afee658c72a2464
|
7
|
+
data.tar.gz: da8291ff61704bbd4e0073334817b2ec1bf82b0ec1bb36bdc9d3c3dad9861d3f2fdf195031369bd7545c5e3a304dba18a60ddf6b6610657baf4f188efb38c3b3
|
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.323]:001 >>> PWN.help
|
41
41
|
```
|
42
42
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.4.4@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.323]: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.4.4@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.323]: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:
|
@@ -346,15 +346,18 @@ module PWN
|
|
346
346
|
|
347
347
|
report_url = Base64.strict_encode64(target_domain)
|
348
348
|
# Ready scanreport API call in burpbuddy to support HTML & XML report generation
|
349
|
-
#
|
350
|
-
# "http://#{burpbuddy_api}/scanreport/#{report_type.to_s.upcase}/#{report_url}"
|
351
|
-
# )
|
349
|
+
# This is for the older burpbuddy-3.1.1-SNAPSHOT-all.jar
|
352
350
|
report_resp = rest_browser.get(
|
353
|
-
"http://#{burpbuddy_api}/scanreport/#{report_url}"
|
351
|
+
"http://#{burpbuddy_api}/scanreport/#{report_type.to_s.upcase}/#{report_url}"
|
354
352
|
)
|
353
|
+
# This is for the older burpbuddy-3.1.0-SNAPSHOT-all.jar
|
354
|
+
# report_resp = rest_browser.get(
|
355
|
+
# "http://#{burpbuddy_api}/scanreport/#{report_url}"
|
356
|
+
# )
|
355
357
|
File.open(output_path, 'w') do |f|
|
356
358
|
f.puts(report_resp.body.gsub("\r\n", "\n"))
|
357
359
|
end
|
360
|
+
rescue RestClient::Exceptions::NotFound
|
358
361
|
rescue StandardError => e
|
359
362
|
stop(burp_obj: burp_obj) unless burp_obj.nil?
|
360
363
|
raise e
|
data/lib/pwn/version.rb
CHANGED
@@ -8,12 +8,13 @@ grok_error
|
|
8
8
|
$screen_cmd "${apt} install -y libgconf-2-4 ${assess_update_errors}"
|
9
9
|
grok_error
|
10
10
|
|
11
|
-
curl --silent 'https://api.github.com/repos/tomsteele/burpbuddy/releases/latest' > /tmp/latest_burpbuddy.json
|
12
|
-
latest_burpbuddy_jar=$(ruby -e "require 'json'; pp JSON.parse(File.read('/tmp/latest_burpbuddy.json'), symbolize_names: true)[:assets][0][:browser_download_url]")
|
13
|
-
burpbuddy_jar_url=`echo ${latest_burpbuddy_jar} | sed 's/"//g'`
|
14
|
-
wget $burpbuddy_jar_url -P /tmp/
|
11
|
+
# curl --silent 'https://api.github.com/repos/tomsteele/burpbuddy/releases/latest' > /tmp/latest_burpbuddy.json
|
12
|
+
# latest_burpbuddy_jar=$(ruby -e "require 'json'; pp JSON.parse(File.read('/tmp/latest_burpbuddy.json'), symbolize_names: true)[:assets][0][:browser_download_url]")
|
13
|
+
# burpbuddy_jar_url=`echo ${latest_burpbuddy_jar} | sed 's/"//g'`
|
14
|
+
# wget $burpbuddy_jar_url -P /tmp/
|
15
15
|
burp_root="/opt/burpsuite"
|
16
|
-
sudo /bin/bash --login -c "mkdir ${burp_root} && cp /tmp/burpbuddy*.jar ${burp_root} && rm /tmp/latest_burpbuddy.json && rm /tmp/burpbuddy*.jar"
|
16
|
+
# sudo /bin/bash --login -c "mkdir ${burp_root} && cp /tmp/burpbuddy*.jar ${burp_root} && rm /tmp/latest_burpbuddy.json && rm /tmp/burpbuddy*.jar"
|
17
|
+
sudo cp /opt/pwn/third-party/burpbuddy-3.1.1-SNAPSHOT.jar $burp_root/burpbuddy-3.1.1-SNAPSHOT.jar
|
17
18
|
|
18
19
|
ls $burp_root/burpbuddy*.jar | while read bb_latest; do
|
19
20
|
sudo ln -s $bb_latest $burp_root/burpbuddy.jar
|