pwn 0.5.162 → 0.5.164

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66d3c79e6bd65944a863f1f91dc14b5c38b2f1d966ad01da138e327c2695bcd7
4
- data.tar.gz: 1b22a1e5586aba903869f783efc59533de9b7baa8749c466ea73d3470f90fb08
3
+ metadata.gz: 8f78ea5b6f4385d8d1958510be2beea8dbf58c86b1c13da7d500f098dcaaad45
4
+ data.tar.gz: f216cdba12537f7888f0847e31d2783e8f9be38431e69698647b349415e53ef7
5
5
  SHA512:
6
- metadata.gz: 584b10c147f8711a9bf385cc7cfc2b17287d7b8d9a38da210f5fa2adfcb6b6e198b1afc52b36cf31692776c3789d84851e358de272e7c5ac765981ed64bb2fbf
7
- data.tar.gz: 426e5669c7318a18a797a7f58f7f9eab38fb49e4fb8f45586c1f9212a3131d0e7d50d0d9efc13bce8082a4462a6019906db6f55c220f8236d453692bbe4b5b3b
6
+ metadata.gz: '08cbd80147f31a23b2ad0f379aba358afe96290658447a2060adcb7a58b4e1e19f73aef265e0a1b9627b7394d443bcb59bdf510bc2998eec16f23d281ede83a8'
7
+ data.tar.gz: 90e4389b63a5869249995a543b89563fedb28b2529f4efce3b163f628341fefb33fb130487f522ddf4bcb112d7eba2dcd15318e56e157f6ae9e26db87b19e892
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.162]:001 >>> PWN.help
40
+ pwn[v0.5.164]: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.3.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.162]:001 >>> PWN.help
55
+ pwn[v0.5.164]: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.3.1@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.162]:001 >>> PWN.help
65
+ pwn[v0.5.164]: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:
@@ -232,6 +232,7 @@ begin
232
232
 
233
233
  http_methods = %i[DELETE GET HEAD OPTIONS PATCH POST PUT TRACE].shuffle
234
234
  http_methods.each do |http_method|
235
+ # TODO: Implement HTTP response timeout
235
236
  rest_client_resp_hash = request_path(
236
237
  target_url: target_url,
237
238
  proxy: proxy,
@@ -335,16 +335,14 @@ module PWN
335
335
 
336
336
  public_class_method def self.close(opts = {})
337
337
  browser_obj = opts[:browser_obj]
338
+ browser = browser_obj[:browser]
339
+ tor_obj = browser_obj[:tor_obj]
338
340
 
339
- unless browser_obj[:tor_obj].nil?
340
- tor_obj = browser_obj[:tor_obj]
341
- PWN::Plugins::Tor.stop(tor_obj: browser_obj[:tor_obj])
342
- end
341
+ PWN::Plugins::Tor.stop(tor_obj: browser_obj[:tor_obj]) if tor_obj
342
+
343
+ # Close the browser unless browser.nil? (thus the &)
344
+ browser&.close unless browser.to_s == 'RestClient'
343
345
 
344
- unless browser_obj[:browser].to_s.include?('RestClient')
345
- # Close the browser unless this_browser_obj.nil? (thus the &)
346
- browser_obj[:browser]&.close
347
- end
348
346
  nil
349
347
  rescue StandardError => e
350
348
  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.162'
4
+ VERSION = '0.5.164'
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.162
4
+ version: 0.5.164
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.