pwn 0.5.172 → 0.5.173
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 +4 -4
- data/README.md +3 -3
- data/lib/pwn/plugins/transparent_browser.rb +7 -3
- data/lib/pwn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4896cb625aad3bcb7fcc5ecc506851860530486d84a9fa956e5cc526f15c2437
|
|
4
|
+
data.tar.gz: 131b84769166bc8cceaabc66263a8ed70370eb9a996c94c4f326c3027ca62bc1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '06832bdbed010c3629c262193b6e102db2da103d3ca6edeb3923039a4bf5f111cab556abc038c45d4aa522024ebbe5b312352ba94ecf0db703738280dd43b3cc'
|
|
7
|
+
data.tar.gz: 53cb1a3b9069c3dfa9025d45fb7fdf5eccabcb7517e5aa27c23cd359403d762d5737310b24fca7a238f3e542bc13d177469e49f5718d8a8cf5a240bce75abd7a
|
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.173]:001 >>> PWN.help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
[](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.173]: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.173]: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:
|
|
@@ -130,8 +130,9 @@ module PWN
|
|
|
130
130
|
args: args,
|
|
131
131
|
accept_insecure_certs: true
|
|
132
132
|
)
|
|
133
|
+
|
|
134
|
+
options.web_socket_url = true
|
|
133
135
|
options.profile = this_profile
|
|
134
|
-
# driver = Selenium::WebDriver.for(:firefox, capabilities: options)
|
|
135
136
|
driver = Selenium::WebDriver.for(:firefox, options: options)
|
|
136
137
|
browser_obj[:browser] = Watir::Browser.new(driver)
|
|
137
138
|
|
|
@@ -155,8 +156,8 @@ module PWN
|
|
|
155
156
|
accept_insecure_certs: true
|
|
156
157
|
)
|
|
157
158
|
|
|
159
|
+
options.web_socket_url = true
|
|
158
160
|
options.profile = this_profile
|
|
159
|
-
# driver = Selenium::WebDriver.for(:chrome, capabilities: options)
|
|
160
161
|
driver = Selenium::WebDriver.for(:chrome, options: options)
|
|
161
162
|
browser_obj[:browser] = Watir::Browser.new(driver)
|
|
162
163
|
|
|
@@ -218,6 +219,7 @@ module PWN
|
|
|
218
219
|
accept_insecure_certs: true
|
|
219
220
|
)
|
|
220
221
|
|
|
222
|
+
options.web_socket_url = true
|
|
221
223
|
options.profile = this_profile
|
|
222
224
|
driver = Selenium::WebDriver.for(:firefox, options: options)
|
|
223
225
|
browser_obj[:browser] = Watir::Browser.new(driver)
|
|
@@ -239,6 +241,7 @@ module PWN
|
|
|
239
241
|
accept_insecure_certs: true
|
|
240
242
|
)
|
|
241
243
|
|
|
244
|
+
options.web_socket_url = true
|
|
242
245
|
options.profile = this_profile
|
|
243
246
|
driver = Selenium::WebDriver.for(:chrome, options: options)
|
|
244
247
|
browser_obj[:browser] = Watir::Browser.new(driver)
|
|
@@ -286,6 +289,7 @@ module PWN
|
|
|
286
289
|
browser_obj[:browser].execute_script("document.title = '#{rand_tab}'")
|
|
287
290
|
|
|
288
291
|
browser_obj[:devtools] = browser_obj[:browser].driver.devtools
|
|
292
|
+
browser_obj[:bidi] = browser_obj[:browser].driver.bidi
|
|
289
293
|
|
|
290
294
|
# browser_obj[:devtools].send_cmd('DOM.enable')
|
|
291
295
|
# browser_obj[:devtools].send_cmd('Log.enable')
|
|
@@ -523,7 +527,7 @@ module PWN
|
|
|
523
527
|
|
|
524
528
|
case action.to_s.downcase.to_sym
|
|
525
529
|
when :pause
|
|
526
|
-
console(
|
|
530
|
+
console(browser_obj: browser_obj, js: 'debugger')
|
|
527
531
|
|
|
528
532
|
# devtools.send_cmd('Debugger.enable')
|
|
529
533
|
# devtools.send_cmd(
|
data/lib/pwn/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pwn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.173
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 0day Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-06-
|
|
11
|
+
date: 2024-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|