pwn 0.5.198 → 0.5.199
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 +64 -0
- 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: a651643008909b3dd6b654f1bbefea615460bb2b23935c198b101bf17b5cc316
|
4
|
+
data.tar.gz: 1075cf93268dfccf30bf341ef49e2b208daf478bbf86a283b00496f57ff39b3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b88a620917d7ccfe4cbbd30e89040ed29980c74496eba513e2c4ca0bf8ce7932be50846d32bcc88fe9630644a2f2cdae057e0f50124c69f5228c81d60134967
|
7
|
+
data.tar.gz: b86c75c34ff0e5ddd3fc65785e0f62b0c2f0afd8e8bfbefcff5dd16a430724c06606b5d0a673b2015de05edfb47feb8fcfd27c16d5ee36b31ccdd72eace0d7f0
|
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.199]: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.199]: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.199]: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:
|
@@ -107,6 +107,30 @@ module PWN
|
|
107
107
|
this_profile['devtools.cache.disabled'] = true
|
108
108
|
this_profile['dom.caches.enabled'] = false
|
109
109
|
|
110
|
+
# DevTools ToolBox Settings in Firefox about:config
|
111
|
+
this_profile['devtools.f12.enabled'] = true
|
112
|
+
this_profile['devtools.toolbox.host'] = 'right'
|
113
|
+
this_profile['devtools.toolbox.sidebar.width'] = 1400
|
114
|
+
this_profile['devtools.toolbox.splitconsoleHeight'] = 200
|
115
|
+
|
116
|
+
# DevTools Debugger Settings in Firefox about:config
|
117
|
+
this_profile['devtools.toolbox.selectedTool'] = 'jsdebugger'
|
118
|
+
this_profile['devtools.debugger.start-panel-size'] = 200
|
119
|
+
this_profile['devtools.debugger.end-panel-size'] = 200
|
120
|
+
this_profile['devtools.debugger.auto-pretty-print'] = true
|
121
|
+
# Re-enable once syntax highlighting is fixed
|
122
|
+
# this_profile['devtools.debugger.ui.editor-wrapping'] = true
|
123
|
+
this_profile['devtools.debugger.features.javascript-tracing'] = true
|
124
|
+
this_profile['devtools.debugger.xhr-breakpoints-visible'] = true
|
125
|
+
this_profile['devtools.debugger.expressions-visible'] = true
|
126
|
+
this_profile['devtools.debugger.dom-mutation-breakpoints-visible'] = true
|
127
|
+
this_profile['devtools.debugger.features.async-live-stacks'] = true
|
128
|
+
this_profile['devtools.debugger.features.autocomplete-expressions'] = true
|
129
|
+
this_profile['devtools.debugger.features.code-folding'] = true
|
130
|
+
this_profile['devtools.debugger.features.command-click'] = true
|
131
|
+
this_profile['devtools.debugger.features.component-pane'] = true
|
132
|
+
this_profile['devtools.debugger.map-scopes-enabled'] = true
|
133
|
+
|
110
134
|
# caps = Selenium::WebDriver::Remote::Capabilities.firefox
|
111
135
|
# caps[:acceptInsecureCerts] = true
|
112
136
|
|
@@ -441,6 +465,40 @@ module PWN
|
|
441
465
|
raise e
|
442
466
|
end
|
443
467
|
|
468
|
+
# Supported Method Parameters::
|
469
|
+
# PWN::Plugins::TransparentBrowser.update_about_config(
|
470
|
+
# browser_obj: browser_obj1,
|
471
|
+
# key: 'required - key to update in about:config',
|
472
|
+
# value: 'required - value to set for key in about:config'
|
473
|
+
# )
|
474
|
+
|
475
|
+
public_class_method def self.update_about_config(opts = {})
|
476
|
+
browser_obj = opts[:browser_obj]
|
477
|
+
supported = %i[firefox headless_firefox]
|
478
|
+
verify_devtools_browser(browser_obj: browser_obj, supported: supported)
|
479
|
+
|
480
|
+
key = opts[:key]
|
481
|
+
raise 'ERROR: key parameter is required' if key.nil?
|
482
|
+
|
483
|
+
value = opts[:value]
|
484
|
+
raise 'ERROR: value parameter is required' if value.nil?
|
485
|
+
|
486
|
+
browser = browser_obj[:browser]
|
487
|
+
browser_type = browser_obj[:type]
|
488
|
+
# chrome_types = %i[chrome headless_chrome]
|
489
|
+
firefox_types = %i[firefox headless_firefox]
|
490
|
+
|
491
|
+
browser.goto('about:config')
|
492
|
+
# Confirmed working in Firefox
|
493
|
+
js = %{Services.prefs.setStringPref("#{key}", "#{value}")} if firefox_types.include?(browser_type)
|
494
|
+
console(browser_obj: browser_obj, js: js)
|
495
|
+
browser.back
|
496
|
+
rescue Timeout::Error, Timeout::ExitException
|
497
|
+
console_resp
|
498
|
+
rescue StandardError => e
|
499
|
+
raise e
|
500
|
+
end
|
501
|
+
|
444
502
|
# Supported Method Parameters::
|
445
503
|
# tabs = PWN::Plugins::TransparentBrowser.list_tabs(
|
446
504
|
# browser_obj: 'required - browser_obj returned from #open method)'
|
@@ -897,6 +955,12 @@ module PWN
|
|
897
955
|
js: 'required - JavaScript expression to evaluate'
|
898
956
|
)
|
899
957
|
|
958
|
+
#{self}.update_about_config(
|
959
|
+
browser_obj: 'required - browser_obj returned from #open method)',
|
960
|
+
key: 'required - key to update in about:config',
|
961
|
+
value: 'required - value to set for key in about:config'
|
962
|
+
)
|
963
|
+
|
900
964
|
tabs = #{self}.list_tabs(
|
901
965
|
browser_obj: 'required - browser_obj returned from #open method)'
|
902
966
|
)
|
data/lib/pwn/version.rb
CHANGED