pwn 0.4.529 → 0.4.530

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: e8edebfc80a2f2a49bb42640d91d3ccb1980a3e54ab4b199a67af322f44f5007
4
- data.tar.gz: dc73dbe5239f0eed921a39175e2f9d075cb88b569ca6fdc1eb443c58d2f5abc7
3
+ metadata.gz: 612f547ef710363dbb2354048dbae80679dc8153f74512d09847f8d43e29e90c
4
+ data.tar.gz: ce2ef03d718183d5130749244cd0237774b3b58003e693b790c59abf21abbe5f
5
5
  SHA512:
6
- metadata.gz: a82d0cb3201138e6124a84156a8401529fbf9a73fc52bc40a52075da41a1d73aff0bc355e9ae302640d673815751d4eb1987ef923751b1a3106c49151760e07d
7
- data.tar.gz: 983a1e1654687297cf5d31ee0995aa2bb77490a7820db234f714f8eaaae12c62046e9d4b424c9bada329c9c0c78b918ef92fa2fba5c1398ef9f405f60222365b
6
+ metadata.gz: 6fd3b7a65884a9551eb6b8cec0b34f1d96dd3211d2d511c144ef31a93ba5ca828327c7c768e42b694765f46af93cfd8b858275c5cf4b9b1065336c430edb1ce7
7
+ data.tar.gz: 0bef199fc9669b712205d3dac1d30e50b24135dd389a28ceccc1a7e193c9fc01fbf33f578665f808d52f22e0d67d55fc72eccda2819b230317eaa7010b7b2f9e
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.2@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.529]:001 >>> PWN.help
40
+ pwn[v0.4.530]: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.1.2@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.529]:001 >>> PWN.help
55
+ pwn[v0.4.530]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -82,12 +82,11 @@ begin
82
82
 
83
83
  next if wordlist_line.match?(/^#/)
84
84
 
85
- http_uri = "#{target_url}/#{CGI.escape(wordlist_line)}"
86
-
87
85
  http_methods = %i[GET HEAD POST PUT DELETE OPTIONS TRACE]
88
86
  http_methods.each do |http_method|
89
87
  begin
90
88
  print '.'
89
+ http_uri = "#{target_url}/#{wordlist_line}"
91
90
  rest_client_resp_hash = {}
92
91
  rest_client = PWN::Plugins::TransparentBrowser.open(browser_type: :rest)::Request
93
92
  response = rest_client.execute(
@@ -116,6 +115,14 @@ begin
116
115
  http_resp: e.response.body[0..300]
117
116
  }
118
117
  next
118
+ rescue URI::InvalidURIError
119
+ url_encoded_wordlist_arr = []
120
+ wordlist_line.split('/').each do |path|
121
+ url_encoded_wordlist_arr.push(CGI.escape(path))
122
+ end
123
+ wordlist_line = url_encoded_wordlist_arr.join('/')
124
+
125
+ retry
119
126
  rescue RestClient::TooManyRequests
120
127
  sleep 60
121
128
  ensure
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.4.529'
4
+ VERSION = '0.4.530'
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.4.529
4
+ version: 0.4.530
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.