pwn 0.5.161 → 0.5.163

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: 0db3c5760e312a8641c11a69259e8c6209ee153135192bd189ae825be98c9eb3
4
- data.tar.gz: 890d0193a300e145505db09b43b84946636b7c3f24cccd039f6b259d174ebcd7
3
+ metadata.gz: 8e92e4afa29b64aeb0f637997a141a37e14583f67fbc2e25102adb4341ce429b
4
+ data.tar.gz: d619e2fa3517d6c2a4b1006047f66564b44ca6da090f0bd2f140a7059899216a
5
5
  SHA512:
6
- metadata.gz: e623634c9531d84a51a0024c742d0e983ffd6da3acd28732455d6c4560ff49f9e7e2b8f7253d6e7165e59fbd161f7950d8777ea672a555e4c1df5b5378c2fdf3
7
- data.tar.gz: 3b73a023378f7e1ec769a9cf2244a3af7bee4f4f653152f204242487d853232825597bb2d243b8108911486bc1f6a0a9bfc78785133d68c2b65877e3e79cff19
6
+ metadata.gz: a76ed168c818975c5a685dd997f41ed69cc2e632aa5ef0b108ad1d053a8a8c167783e40d05c3702b41fb45b9fd01c96d0f77c11cd9ef8ed7e1a5e50b6f6f0dd0
7
+ data.tar.gz: d61cf3de8474f63bc02bfddc4b9ab7bef7e1d08d12c08873c46cfa4874e4259865ecb932a76df4973a1fdad9cac28647993f13fd4567889538edbbf95c11207b
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.161]:001 >>> PWN.help
40
+ pwn[v0.5.163]: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.161]:001 >>> PWN.help
55
+ pwn[v0.5.163]: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.161]:001 >>> PWN.help
65
+ pwn[v0.5.163]: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:
@@ -230,7 +230,7 @@ begin
230
230
 
231
231
  next if wordlist_line.match?(/^#/)
232
232
 
233
- http_methods = %i[DELETE GET HEAD OPTIONS PATCH POST PUT TRACE].shuffle
233
+ http_methods = %i[DELETE GET HEAD OPTIONS PATCH POST PUT TRACE].shuffle
234
234
  http_methods.each do |http_method|
235
235
  rest_client_resp_hash = request_path(
236
236
  target_url: target_url,
@@ -285,5 +285,6 @@ begin
285
285
  rescue SystemExit, Interrupt
286
286
  puts "\nGoodbye."
287
287
  rescue StandardError => e
288
+ puts e.backtrace
288
289
  raise e
289
290
  end
@@ -336,12 +336,12 @@ module PWN
336
336
  public_class_method def self.close(opts = {})
337
337
  browser_obj = opts[:browser_obj]
338
338
 
339
- unless browser_obj[:tor_obj].nil?
339
+ if browser_obj[:tor_obj]
340
340
  tor_obj = browser_obj[:tor_obj]
341
341
  PWN::Plugins::Tor.stop(tor_obj: browser_obj[:tor_obj])
342
342
  end
343
343
 
344
- unless browser_obj[:browser].to_s.include?('RestClient')
344
+ unless browser_obj[:browser].is_a?(RestClient)
345
345
  # Close the browser unless this_browser_obj.nil? (thus the &)
346
346
  browser_obj[:browser]&.close
347
347
  end
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.161'
4
+ VERSION = '0.5.163'
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.161
4
+ version: 0.5.163
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.