pwn 0.5.355 → 0.5.357

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: 1a1c25778cca78de03158bfd515b79afe966f47c3696619c02a2a8b6c54e8f48
4
- data.tar.gz: 727062f71c704907703d87877d009eb7b9cf91669e72257458592178dd89dd6f
3
+ metadata.gz: 5fbffd12dab4ec7445621a5ed40a9f30c897ed6da0b571b8fe86ea31654dc4f8
4
+ data.tar.gz: e7a41bfc31a0f47b6cf3b0f4f5012ad19ebedc8a1f2634ac6da2889a2c8b6b4b
5
5
  SHA512:
6
- metadata.gz: 961c1695548771ae13d9a56d2a4170d52c2b660a55de3ae387d1a0fd5bf38e7ff9c8bd1f18366cb2b8eee40d1ee12779ce834eb0620f200b5e952ea0a2f0ed02
7
- data.tar.gz: 208f0401332646eafec405fa2b8ff0e05932591145fa088f639290b25729085eb286d80cc6fa774d655a26c7caa3f4e5e2545d3c573fe7165d781f833ab5b06a
6
+ metadata.gz: 9b0e0783542662858f36b1ab27478e075ad905b8cb0fbb8c9b21c655210c262ea21b87eb16dc7b03649616ed9d9c8174f53615ba96aef56c94ae80ef89af4df0
7
+ data.tar.gz: 293ab4b74dab8db0e42ace366ce1e5a514261bf4791f211f6cb06b1d56ecb5f6d08a43a7f8a3765a54acb02a832de5bcf1307dd040e12ea89c8c42cc158300b3
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.355]:001 >>> PWN.help
40
+ pwn[v0.5.357]: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.355]:001 >>> PWN.help
55
+ pwn[v0.5.357]: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.355]:001 >>> PWN.help
65
+ pwn[v0.5.357]: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:
@@ -800,20 +800,31 @@ module PWN
800
800
  end
801
801
 
802
802
  # Wait for scan completion
803
- scan_queue = rest_browser.get("http://#{pwn_burp_api}/scan/active")
804
- json_scan_queue = JSON.parse(scan_queue, symbolize_names: true)
805
- scan_queue_total = json_scan_queue.count
806
- json_scan_queue.each do |scan_item|
807
- this_scan_item_id = scan_item[:id]
808
- until scan_item[:status] == 'finished'
809
- scan_item_resp = rest_browser.get("http://#{pwn_burp_api}/scan/active/#{this_scan_item_id}")
810
- scan_item = JSON.parse(scan_item_resp, symbolize_names: true)
811
- scan_status = scan_item[:status]
812
- puts "Target ID ##{this_scan_item_id} of ##{scan_queue_total}| #{scan_status}"
813
- sleep 3
803
+ loop do
804
+ scan_queue = rest_browser.get("http://#{pwn_burp_api}/scan/active")
805
+ json_scan_queue = JSON.parse(scan_queue, symbolize_names: true)
806
+ break if json_scan_queue.all? { |scan| scan[:status] == 'finished' }
807
+
808
+ puts "\n\n\n"
809
+ puts '-' * 90
810
+ json_scan_queue.each do |scan|
811
+ puts "Target ID: #{scan[:id]}, Request Count: #{scan[:request_count]}, Progress: #{scan[:percent_complete]}%, Status: #{scan[:status]}"
814
812
  end
815
- puts "Target ID ##{this_scan_item_id} of ##{scan_queue_total}| 100% complete\n"
813
+
814
+ sleep 30
816
815
  end
816
+ # scan_queue_total = json_scan_queue.count
817
+ # json_scan_queue.each do |scan_item|
818
+ # this_scan_item_id = scan_item[:id]
819
+ # until scan_item[:status] == 'finished'
820
+ # scan_item_resp = rest_browser.get("http://#{pwn_burp_api}/scan/active/#{this_scan_item_id}")
821
+ # scan_item = JSON.parse(scan_item_resp, symbolize_names: true)
822
+ # scan_status = scan_item[:status]
823
+ # puts "Target ID ##{this_scan_item_id} of ##{scan_queue_total}| #{scan_status}"
824
+ # sleep 3
825
+ # end
826
+ # puts "Target ID ##{this_scan_item_id} of ##{scan_queue_total}| 100% complete\n"
827
+ # end
817
828
 
818
829
  active_scan_url_arr # Return array of targeted URIs to pass to #generate_scan_report method
819
830
  rescue StandardError => 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.355'
4
+ VERSION = '0.5.357'
5
5
  end
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.355
4
+ version: 0.5.357
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.