pwn 0.5.197 → 0.5.198

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: f92bf05f78be9e727004d9049d6301949d45ede4c46bf6fe3eacd984c9956c36
4
- data.tar.gz: 4a0c9b7d30415268d58594537251268f04498f58a78898b78a1ce282095028cb
3
+ metadata.gz: a30f2d135c01d466356d18ce8476d369880832f2cf15e83ab03935db04d1fad0
4
+ data.tar.gz: 9981bb26e409bb5a66568367fe7642ede2367308f8c1b62f7fa48ad936857546
5
5
  SHA512:
6
- metadata.gz: 18269c84588e1f422f2b4a31fff983a8b938b8ae79973cdedf1c381505acc641bba69e6aab30556a4885e84455891889eb68d6a1c42157c5f935b8014f6c8510
7
- data.tar.gz: 305308def68f22467443c214fe20a014a93ae4afc476fd4c5705ddc3c483fb07f1ee49957e24e57dacc1b976200350272adf0ddf3c9140d0cb1f83ee5a8dbd6d
6
+ metadata.gz: 3a5b6615feaa3b7a7885a39de4f90950166565eeee727ad70854aa11a918cd68e6dc4dd04c4a762876f61b55b67482e2e635ecad5f7d804e4146263133a8dcbf
7
+ data.tar.gz: 284c0b19781af117e09c9fa6eca4588f70ce5602dd943b69bb1a8cf07798eb79d89ced07c27402c9bc60671dd65989932f35e0f17c0575c0ec3b6c3ec0106c13
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.197]:001 >>> PWN.help
40
+ pwn[v0.5.198]: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.197]:001 >>> PWN.help
55
+ pwn[v0.5.198]: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.197]:001 >>> PWN.help
65
+ pwn[v0.5.198]: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:
@@ -128,6 +128,8 @@ module PWN
128
128
  end
129
129
 
130
130
  # args.push('--devtools') if devtools
131
+ # Private browsing mode
132
+ args.push('--private')
131
133
  options = Selenium::WebDriver::Firefox::Options.new(
132
134
  args: args,
133
135
  accept_insecure_certs: true
@@ -153,6 +155,8 @@ module PWN
153
155
  args.push('--disable-hang-monitor')
154
156
  end
155
157
 
158
+ # Incognito browsing mode
159
+ args.push('--incognito')
156
160
  options = Selenium::WebDriver::Chrome::Options.new(
157
161
  args: args,
158
162
  accept_insecure_certs: true
@@ -214,6 +218,8 @@ module PWN
214
218
  end
215
219
 
216
220
  args.push('--headless')
221
+ # Private browsing mode
222
+ args.push('--private')
217
223
  options = Selenium::WebDriver::Firefox::Options.new(
218
224
  args: args,
219
225
  accept_insecure_certs: true
@@ -230,13 +236,14 @@ module PWN
230
236
  this_profile['download.prompt_for_download'] = false
231
237
  this_profile['download.default_directory'] = '~/Downloads'
232
238
 
233
- args.push('--headless')
234
-
235
239
  if proxy
236
240
  args.push("--host-resolver-rules='MAP * 0.0.0.0 , EXCLUDE #{tor_obj[:ip]}'") if tor_obj
237
241
  args.push("--proxy-server=#{proxy}")
238
242
  end
239
243
 
244
+ args.push('--headless')
245
+ # Incognito browsing mode
246
+ args.push('--incognito')
240
247
  options = Selenium::WebDriver::Chrome::Options.new(
241
248
  args: args,
242
249
  accept_insecure_certs: true
@@ -677,6 +684,7 @@ module PWN
677
684
  browser.execute_script("document.title = '#{devtools_tab_title}'")
678
685
  end
679
686
 
687
+ # TODO: Find replacement for hotkey - there must be a better way.
680
688
  browser.send_keys(:f12)
681
689
  if first_tab
682
690
  # TODO: replace sleep with something more reliable like an event listener
@@ -705,6 +713,7 @@ module PWN
705
713
  firefox_types = %i[firefox headless_firefox]
706
714
  chrome_types = %i[chrome headless_chrome]
707
715
 
716
+ # TODO: Find replacement for hotkey - there must be a better way.
708
717
  hotkey = []
709
718
  case PWN::Plugins::DetectOS.type
710
719
  when :linux, :openbsd, :windows
@@ -715,11 +724,13 @@ module PWN
715
724
 
716
725
  case panel
717
726
  when :elements, :inspector
727
+ hotkey.push('i') if chrome_types.include?(browser_type)
718
728
  hotkey.push('c') if firefox_types.include?(browser_type)
719
729
  when :console
720
730
  hotkey.push('j') if chrome_types.include?(browser_type)
721
731
  hotkey.push('k') if firefox_types.include?(browser_type)
722
732
  when :debugger, :sources
733
+ hotkey.push('s') if chrome_types.include?(browser_type)
723
734
  if firefox_types.include?(browser_type)
724
735
  # If we're in the console, we need to switch to the inspector first
725
736
  jmp_devtools_panel(browser_obj: browser_obj, panel: :inspector)
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.197'
4
+ VERSION = '0.5.198'
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.197
4
+ version: 0.5.198
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.