pwn 0.4.383 → 0.4.384

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e108fb65ae9052eeb2d7adec80706eebddd3493cd2766dd00b3210cee62aa9c4
4
- data.tar.gz: 6259072fa3b503007c058b8150848c73b74d2d85d72c88c821e612ee83d2a4cb
3
+ metadata.gz: 01e5e3df0ac88dc250a1802ee64b5cc2f86b5914a629b73962248d834edac063
4
+ data.tar.gz: 3addee02b1cb5672ad73d9fcb37034e728411fa61285f5d489c58fe2d56cd505
5
5
  SHA512:
6
- metadata.gz: 7b44e2ed665b2e524b9afe56cfdc75fe17dfd52b28dafdac938714a2ea64cc51ce7c673a5549d8f5e308ef3e650471aee89d922fd3de8c98ff352303fa79b2ef
7
- data.tar.gz: 7ebfbd4af956e56a361cab6f19478568edb2cbc5254e5bb592e129fff2847ef58f0c6700d7e1daa7161d9c65ddd287890c65e643f5464443ed94b1dfca754f9b
6
+ metadata.gz: 75b5d00ca3d50dc0047f57cea1fcf192fae4fdf25c25ba3432118e93f0346437bd64eb7d6dc78f7b5b10fb6b057914a8cd630f586a6d58c9e4d56b899b546234
7
+ data.tar.gz: 74f07a6e5fce1dfa28a1e2bf67f59d71f007bfad73e2c3098a9b0931a9ff7fdaa0b06b559a9305c9378eff33361893af238e2e3e83562b6b7ed6f410afaa2222
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.1@pwn
37
37
  $ rvm list gemsets
38
38
  $ gem install --verbose pwn
39
39
  $ pwn
40
- pwn[v0.4.383]:001 >>> PWN.help
40
+ pwn[v0.4.384]: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.1.1@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.4.383]:001 >>> PWN.help
55
+ pwn[v0.4.384]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -317,22 +317,61 @@ module PWN
317
317
  with_devtools: 'optional - boolean (defaults to false)'
318
318
  )
319
319
  puts browser_obj1.public_methods
320
- * Only works w/ Chrome
320
+
321
+ ********************************************************
322
+ * DevTools Interaction Only works w/ Chrome
321
323
  * All DevTools Commands can be found here:
322
324
  * https://chromedevtools.github.io/devtools-protocol/
325
+ * Examples
323
326
  devtools = browser_obj1.driver.devtools
324
327
  puts devtools.public_methods
325
328
  puts devtools.instance_variables
326
329
  puts devtools.instance_variable_get('@messages')
330
+
331
+ * Tracing
327
332
  devtools.send_cmd('Tracing.start')
328
333
  devtools.send_cmd('Tracing.requestMemoryDump')
329
334
  devtools.send_cmd('Tracing.end')
330
335
  puts devtools.instance_variable_get('@messages')
336
+
337
+ * Network
331
338
  devtools.send_cmd('Network.enable')
332
- last_ws_resp = devtools.instance_variable_get('@messages').last if devtools.instance_variable_get('@messages')['method'] == 'Network.webSocketFrameReceived'
339
+ last_ws_resp = devtools.instance_variable_get('@messages').last if devtools.instance_variable_get('@messages').last['method'] == 'Network.webSocketFrameReceived'
333
340
  puts last_ws_resp
334
341
  devtools.send_cmd('Network.disable')
335
342
 
343
+ * Debugging DOM and Sending JavaScript to Console
344
+ devtools.send_cmd('Runtime.enable')
345
+ devtools.send_cmd('DOM.enable')
346
+ devtools.send_cmd('Log.enable')
347
+ devtools.send_cmd('Debugger.enable')
348
+ devtools.send_cmd('Debugger.pause')
349
+ console_cmd = {
350
+ expression: 'console.log(global);'
351
+ }
352
+ step = 1
353
+ loop do
354
+ devtools.send_cmd('Debugger.stepInto')
355
+ puts \"Step: \#{step}\"
356
+ this_call = devtools.instance_variable_get('@messages').last['params']['callFrames'].last if devtools.instance_variable_get('@messages').last['method'] == 'Debugger.paused'
357
+ puts \"Function Name: \#{this_call['functionName']}\"
358
+ this_document = devtools.send_cmd('DOM.getDocument')
359
+ puts \"This #document:\\n\#{this_document}\\n\\n\\n\"
360
+
361
+ this_global = devtools.send_cmd(
362
+ 'Runtime.evaluate',
363
+ **console_cmd
364
+ )
365
+ puts \"This #global:\\n\#{this_global}\\n\\n\\n\"
366
+
367
+ sleep 9
368
+ end
369
+ devtools.send_cmd('Debugger.disable')
370
+ devtools.send_cmd('DOM.disable')
371
+ devtools.send_cmd('Runtime.disable')
372
+ * End of DevTools Examples
373
+ ********************************************************
374
+
336
375
  browser_obj1 = #{self}.linkout(
337
376
  browser_obj: 'required - browser_obj returned from #open method)'
338
377
  )
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.4.383'
4
+ VERSION = '0.4.384'
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.4.383
4
+ version: 0.4.384
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.