pwn 0.5.179 → 0.5.181

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: 3c731dd165a8e1944b7fab3438d92d3ce475bbeda7e198589413cc141beac5d3
4
- data.tar.gz: 4d69eb7d8a1c966b71e5d6d6e8f111f36f700c5549b7c0a8fb2e0f0822114b79
3
+ metadata.gz: 8f2cd93fb11d42f64b12419e02a23ed2c7f88ae835e596c0262e3c2b3ba8655a
4
+ data.tar.gz: 330a7d0b2cbe399c9434647505f9ff99bd9c2387b9e144f842758358c56e0456
5
5
  SHA512:
6
- metadata.gz: b49202e6895e994720a12ab5995ce3b5e0c1147c1461dbd1e0437f1ddad0b255a5510f8d60aa2138b28648a151f45519c9743539e5d434a90e8e680dd84755ec
7
- data.tar.gz: 65d5f85e931196f99a6d13a3360c5f0e9c2628566a7369aa7c43b6ebe3521dd712e9cb84e27e2f48bea909c9919ecd1f2b248021d27daeb624a9154d9bc7c418
6
+ metadata.gz: bba4edb344417cee978271f729f3c37149b445bcb8e6db6a11f03badea58b79dccddf5bb5d3cc01af115a119b8fedaa1ff8417f7ab0e2982f54c6689c8e3b3e5
7
+ data.tar.gz: 631ac2ce3cdb0029f8f8c69a0f89cbfdd0d71949e4c7909fb858c1ca054849b249ff5d51edb66428756d55221b0655f1634fbdf05d60db34089ad190590facf6
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.179]:001 >>> PWN.help
40
+ pwn[v0.5.181]: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.3@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.179]:001 >>> PWN.help
55
+ pwn[v0.5.181]: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.3@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.179]:001 >>> PWN.help
65
+ pwn[v0.5.181]: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:
@@ -59,8 +59,8 @@ module PWN
59
59
  end
60
60
 
61
61
  devtools_supported = %i[chrome headless_chrome firefox headless_firefox headless]
62
- with_devtools = opts[:with_devtools] ||= true
63
- with_devtools = false unless devtools_supported.include?(browser_type)
62
+ with_devtools = opts[:with_devtools] ||= false
63
+ with_devtools = true if devtools_supported.include?(browser_type) && with_devtools
64
64
 
65
65
  # Let's crank up the default timeout from 30 seconds to 15 min for slow sites
66
66
  Watir.default_timeout = 900
@@ -289,7 +289,8 @@ module PWN
289
289
  browser_obj[:browser].execute_script("document.title = '#{rand_tab}'")
290
290
 
291
291
  if with_devtools
292
- browser_obj[:devtools] = browser_obj[:browser].driver.devtools
292
+ driver = browser_obj[:browser].driver
293
+ browser_obj[:devtools] = driver.devtools
293
294
 
294
295
  browser_obj[:devtools].send_cmd('DOM.enable')
295
296
  browser_obj[:devtools].send_cmd('Log.enable')
@@ -305,7 +306,7 @@ module PWN
305
306
  browser_obj[:devtools].send_cmd('DOMSnapshot.enable')
306
307
  end
307
308
 
308
- # browser_obj[:bidi] = browser_obj[:browser].driver.bidi
309
+ browser_obj[:bidi] = driver.bidi
309
310
  end
310
311
  end
311
312
 
@@ -485,7 +486,7 @@ module PWN
485
486
 
486
487
  browser = browser_obj[:browser]
487
488
  browser.execute_script('window.open()')
488
- switch_tab(browser_obj: browser_obj, keyword: 'about:blank')
489
+ switch_tab(browser_obj: browser_obj, keyword: 'about:about')
489
490
  rand_tab = SecureRandom.hex(8)
490
491
  browser.execute_script("document.title = '#{rand_tab}'")
491
492
  browser.goto(url) unless url.nil?
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.179'
4
+ VERSION = '0.5.181'
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.179
4
+ version: 0.5.181
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.