pwn 0.5.185 → 0.5.186

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbfe23aedfd50bf00cce67e7eff4b1d29d8dc3cf6e4bcfcad8c83c71ee4e5362
4
- data.tar.gz: 397c808f4509652f528c9ca350efe0ae62339556eec55cb2790351b041ceaec6
3
+ metadata.gz: 2ff25e4be2c1f9ef0475858c8d712b2fed42595a90c64f607172d6c53ef2d3ca
4
+ data.tar.gz: 320d9f7ababc3d72a10568f8ccf88dcc53408202fedd859e1d633f9f552d16d9
5
5
  SHA512:
6
- metadata.gz: f45f0ece9a3b81bf0866d1d9edd544a079bfb9dc823be5b6d9e9b5f57de8a1a4c70166a550bd808bfe17ac4c6bb27e0369641f0f162f5f74a9cb450a38dddc70
7
- data.tar.gz: b55dad06ecdbd6a8c2ae7cd911dc81a61b6f92f2f36c8f6d4f583d9da7ea7c768bdb497d6368c7a6bf18faae3bf745c7632a137f7f94fe435f05978dbbfd2282
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.185]:001 >>> PWN.help
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.185]:001 >>> PWN.help
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.185]:001 >>> PWN.help
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.5.185'
4
+ VERSION = '0.5.186'
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.185
4
+ version: 0.5.186
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.