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 +4 -4
- data/README.md +3 -3
- data/lib/pwn/plugins/transparent_browser.rb +6 -5
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f2cd93fb11d42f64b12419e02a23ed2c7f88ae835e596c0262e3c2b3ba8655a
|
4
|
+
data.tar.gz: 330a7d0b2cbe399c9434647505f9ff99bd9c2387b9e144f842758358c56e0456
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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] ||=
|
63
|
-
with_devtools =
|
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
|
-
|
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
|
-
|
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:
|
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