pwn 0.5.308 → 0.5.309

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: 8cf8d3e6c50a8caa34200e9dee3323ac1c689ff2381db4a8b39a8cc51eb7f245
4
- data.tar.gz: 82fd38322306d70277792942ed664bef3a03e0704a30fddbf54fcfc3a82c5a24
3
+ metadata.gz: 04b9816658aabc56840644ad45c4ad7a7acb67f2115027eaabdb2745c6305571
4
+ data.tar.gz: 2dfcea55bc83eefbb84e1bad2ee900d760acf8271a2ddac00badebe421411985
5
5
  SHA512:
6
- metadata.gz: e4e48ca74897cd2cbfe03f961b2922ad1c9d66cadb8c2ce831945e1a935cc227b81c6898991c9bea8b38a3218f14a892699f1766ed566949a99a4de8a8dfe167
7
- data.tar.gz: d7a13a43336ed4bb3301f1c52faa60d771552078521036c8e1090843b3ec70b88c8b16b802ec2eca63fd06f56d4a5dae000d8df19bafed5040cdead98a48b851
6
+ metadata.gz: dd2ef466bcb48f2110f569f25645213c9d3ab6e6d71dedbed6b465b46e3f85995d067f87708326009d14f23d8f84fbf28669d9114df3034afbd04a2495dc5fef
7
+ data.tar.gz: e3111e88a91cc06a6ee9a950feda54527918ab27b5c2cfaa174128dfcd79185acc6d8eef9c0592fe1a30a5c4d5c83a273359be5246ff9be89b8dc761e5231ec3
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.308]:001 >>> PWN.help
40
+ pwn[v0.5.309]: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.4.4@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.308]:001 >>> PWN.help
55
+ pwn[v0.5.309]: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.4.4@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.308]:001 >>> PWN.help
65
+ pwn[v0.5.309]: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:
@@ -494,12 +494,12 @@ module PWN
494
494
  end
495
495
 
496
496
  # Supported Method Parameters::
497
- # console_resp = PWN::Plugins::TransparentBrowser.enable_dom_mutations(
497
+ # console_resp = PWN::Plugins::TransparentBrowser.view_dom_mutations(
498
498
  # browser_obj: browser_obj1,
499
499
  # target: 'optional - target JavaScript node to observe (defaults to document.body)'
500
500
  # )
501
501
 
502
- public_class_method def self.enable_dom_mutations(opts = {})
502
+ public_class_method def self.view_dom_mutations(opts = {})
503
503
  browser_obj = opts[:browser_obj]
504
504
  verify_devtools_browser(browser_obj: browser_obj)
505
505
 
@@ -541,14 +541,17 @@ module PWN
541
541
  end
542
542
 
543
543
  # Supported Method Parameters::
544
- # console_resp = PWN::Plugins::TransparentBrowser.disable_dom_mutations(
545
- # browser_obj: browser_obj1
544
+ # console_resp = PWN::Plugins::TransparentBrowser.hide_dom_mutations(
545
+ # browser_obj: browser_obj1,
546
+ # target: 'optional - target JavaScript node to observe (defaults to document.body)'
546
547
  # )
547
548
 
548
- public_class_method def self.disable_dom_mutations(opts = {})
549
+ public_class_method def self.hide_dom_mutations(opts = {})
549
550
  browser_obj = opts[:browser_obj]
550
551
  verify_devtools_browser(browser_obj: browser_obj)
551
552
 
553
+ target = opts[:target] ||= 'undefined'
554
+
552
555
  jmp_devtools_panel(
553
556
  browser_obj: browser_obj,
554
557
  panel: :console
@@ -1175,12 +1178,14 @@ module PWN
1175
1178
  js: 'required - JavaScript expression to evaluate'
1176
1179
  )
1177
1180
 
1178
- console_resp = #{self}.enable_dom_mutations(
1179
- browser_obj: 'required - browser_obj returned from #open method)'
1181
+ console_resp = #{self}.view_dom_mutations(
1182
+ browser_obj: 'required - browser_obj returned from #open method)',
1183
+ target: 'optional - target JavaScript node to observe (defaults to document.body)'
1180
1184
  )
1181
1185
 
1182
- console_resp = #{self}.disable_dom_mutations(
1183
- browser_obj: 'required - browser_obj returned from #open method)'
1186
+ console_resp = #{self}.hide_dom_mutations(
1187
+ browser_obj: 'required - browser_obj returned from #open method)',
1188
+ target: 'optional - target JavaScript node to observe (defaults to document.body)'
1184
1189
  )
1185
1190
 
1186
1191
  #{self}.update_about_config(
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.308'
4
+ VERSION = '0.5.309'
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.308
4
+ version: 0.5.309
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.