pwn 0.5.185 → 0.5.186
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 +7 -1
- 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: 2ff25e4be2c1f9ef0475858c8d712b2fed42595a90c64f607172d6c53ef2d3ca
|
4
|
+
data.tar.gz: 320d9f7ababc3d72a10568f8ccf88dcc53408202fedd859e1d633f9f552d16d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e09bf1806d28938bfd208a1188db648e2b2501d00d23292e4471351576d3538f63b576b16bea919d14dfddc6cb73f4a1d25192b196caf191656db13e78af832
|
7
|
+
data.tar.gz: be94d3161a65b1c9b5c04885a95971384c32d341c38feec4f414c18e96af1146ddd473c2301dfd9f51e671881f09c9695f4e81c8455f2ea0066ee44be6357a9a
|
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.186]: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.186]: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.186]: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:
|
@@ -307,6 +307,8 @@ module PWN
|
|
307
307
|
end
|
308
308
|
|
309
309
|
browser_obj[:bidi] = driver.bidi
|
310
|
+
|
311
|
+
browser_obj[:browser].body.send_keys(:escape)
|
310
312
|
end
|
311
313
|
end
|
312
314
|
|
@@ -487,6 +489,7 @@ module PWN
|
|
487
489
|
firefox_types = %i[firefox headless_firefox]
|
488
490
|
browser = browser_obj[:browser]
|
489
491
|
browser_type = browser_obj[:type]
|
492
|
+
devtools = browser_obj[:devtools]
|
490
493
|
browser.execute_script('window.open()')
|
491
494
|
jmp_tab(browser_obj: browser_obj, keyword: 'about:blank')
|
492
495
|
browser.goto('about:about') if url.nil?
|
@@ -494,6 +497,8 @@ module PWN
|
|
494
497
|
browser.execute_script("document.title = '#{rand_tab}'")
|
495
498
|
# Open the DevTools for Firefox, Chrome opens them automatically
|
496
499
|
browser.body.send_keys(:f12) if firefox_types.include?(browser_type)
|
500
|
+
# Open Console drawer if DevTools are open
|
501
|
+
browser.body.send_keys(:escape) if devtools
|
497
502
|
browser.goto(url) unless url.nil?
|
498
503
|
|
499
504
|
{ title: browser.title, url: browser.url, state: :active }
|
@@ -837,7 +842,8 @@ module PWN
|
|
837
842
|
)
|
838
843
|
|
839
844
|
tab = #{self}.new_tab(
|
840
|
-
browser_obj: 'required - browser_obj returned from #open method)'
|
845
|
+
browser_obj: 'required - browser_obj returned from #open method)',
|
846
|
+
url: 'optional - URL to navigate to after opening new tab (Defaults to nil)'
|
841
847
|
)
|
842
848
|
|
843
849
|
tab = #{self}.close_tab(
|
data/lib/pwn/version.rb
CHANGED