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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7eea62d63d5aca2a542137bc5e33843f932593cc739a672402c82011a34f0e12
4
- data.tar.gz: b386f87050ccb4732458c054f682814ae773b2ac707b0416c066483cde789f84
3
+ metadata.gz: 489d28655a398392c8563966dfe04887f65edf719b799a767e667b3b0851c033
4
+ data.tar.gz: 1d8e8e536b39b57b82570f87251111996e3882b1ca6f592381227fb09ebf0840
5
5
  SHA512:
6
- metadata.gz: 643a5f55c8dcd1c636a60cbe5e6d3ce66a0764a86277f855329a025713271a85bdc94dc423ae5b97346b417ae628c30ff5c4df9310079005cd44fa3a195c6ca1
7
- data.tar.gz: 5df64318d972e0e265b34047461484b179916c32e9e56034b301bb4077cb6792addb8161e1b25e39ca8a59471c36f6155d3a14bedb8276b972e1c449298656fc
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.322]:001 >>> PWN.help
40
+ pwn[v0.5.323]: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.4.4@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.322]:001 >>> PWN.help
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.322]:001 >>> PWN.help
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
- # report_resp = rest_browser.get(
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.5.322'
4
+ VERSION = '0.5.323'
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.322
4
+ version: 0.5.323
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.