pwn 0.5.341 → 0.5.343

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: 0dd9162b90bfa7892a141fa903f93e63d9670de49c502d051e3fb80599fcefbc
4
- data.tar.gz: fd923fa3a38badc914957cb14b7eee7bd9224898b69a767388cd04ffcb2acede
3
+ metadata.gz: d5dd43e95de8358ae7e7858fa5a4dee616c388568ef45b50ab23f0517ceac624
4
+ data.tar.gz: 9fb5f5d975bf49ea75953d4727cffe200acc05ace6c186d9386732a664ea4236
5
5
  SHA512:
6
- metadata.gz: 84086b5c4b77c9683ef59069f7207fde7c030e688b8cbc47658b9c03ca2db715b71fa74dda0a14a3ad34078ed95794210421b42082997eff347bcdeb9fd9b8a8
7
- data.tar.gz: 1bff96f6a277c6e4d4cddb3ba02e7ee2f085313791cd7ea028c1a90b96155b449101c9628fb06affc1de132b96d80f84b31a2fd6834823b881cd19099b72b651
6
+ metadata.gz: a237c18c20727f6726c4a6c72ed4670f331020bcd5d655433cf38c2e6f89dd71849d7b8a631c61eb9fa4e18513caf9809a26ec68b96f669bf06a64f4fe6ab75a
7
+ data.tar.gz: 1a0093646d0e49ea1c62213386a33c035273493bbfaaa7d5b6dba668a370b6f00cdacd54b0469502659fd8f9c22b7be275f1e026ffe73f8f75c6da3289a34044
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.341]:001 >>> PWN.help
40
+ pwn[v0.5.343]: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.341]:001 >>> PWN.help
55
+ pwn[v0.5.343]: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.341]:001 >>> PWN.help
65
+ pwn[v0.5.343]: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:
@@ -635,7 +635,11 @@ module PWN
635
635
  active_scan_url_arr = []
636
636
 
637
637
  json_sitemap = get_sitemap(burp_obj: burp_obj, target_url: target_url)
638
- json_sitemap.each do |site|
638
+ json_sitemap.uniq.each do |site|
639
+ # Skip if the site does not have a request or http_service
640
+ puts "Site: #{site.inspect}"
641
+ next if site[:request].empty?
642
+
639
643
  json_req = site[:request]
640
644
  b64_decoded_req = Base64.strict_decode64(json_req)
641
645
  json_path = b64_decoded_req.split[1].to_s.scrub.strip.chomp
@@ -682,12 +686,6 @@ module PWN
682
686
  rescue RestClient::ExceptionWithResponse => e
683
687
  puts " => #{e.response.code}"
684
688
  next
685
- rescue RestClient::ServerBrokeConnection
686
- puts ' => Server broke connection.'
687
- next
688
- rescue Errno::ECONNRESET
689
- puts ' => Connection reset by peer.'
690
- next
691
689
  end
692
690
 
693
691
  # Wait for scan completion
@@ -709,6 +707,7 @@ module PWN
709
707
  active_scan_url_arr # Return array of targeted URIs to pass to #generate_scan_report method
710
708
  rescue StandardError => e
711
709
  # stop(burp_obj: burp_obj) unless burp_obj.nil?
710
+ puts e.backtrace
712
711
  raise e
713
712
  end
714
713
 
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.341'
4
+ VERSION = '0.5.343'
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.341
4
+ version: 0.5.343
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.