Module: PWN::WWW::Pastebin
- Defined in:
- lib/pwn/www/pastebin.rb
Overview
This plugin supports Pastebin actions.
Class Method Summary collapse
-
.authors ⇒ Object
- Author(s)
-
0day Inc.
-
.close(opts = {}) ⇒ Object
- Supported Method Parameters
-
browser_obj = PWN::WWW::Pastebin.close( browser_obj: ‘required - browser_obj returned from #open method’ ).
-
.help ⇒ Object
Display Usage for this Module.
-
.onion(opts = {}) ⇒ Object
- Supported Method Parameters
-
browser_obj = PWN::WWW::Pastebin.onion( browser_obj: ‘required - browser_obj returned from #open method’ ).
-
.open(opts = {}) ⇒ Object
- Supported Method Parameters
-
browser_obj = PWN::WWW::Pastebin.open( browser_type: ‘optional - :firefox|:chrome|:ie|:headless (Defaults to :firefox)’, proxy: ‘optional - scheme://proxy_host:port || tor’ ).
Class Method Details
.authors ⇒ Object
- Author(s)
-
0day Inc. <[email protected]>
56 57 58 59 60 |
# File 'lib/pwn/www/pastebin.rb', line 56 public_class_method def self. "AUTHOR(S): 0day Inc. <[email protected]> " end |
.close(opts = {}) ⇒ Object
- Supported Method Parameters
-
browser_obj = PWN::WWW::Pastebin.close(
browser_obj: 'required - browser_obj returned from #open method'
)
45 46 47 48 49 50 51 52 |
# File 'lib/pwn/www/pastebin.rb', line 45 public_class_method def self.close(opts = {}) browser_obj = opts[:browser_obj] PWN::Plugins::TransparentBrowser.close( browser_obj: browser_obj ) rescue StandardError => e raise e end |
.help ⇒ Object
Display Usage for this Module
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/pwn/www/pastebin.rb', line 64 public_class_method def self.help puts "USAGE: browser_obj = #{self}.open( browser_type: 'optional :firefox|:chrome|:ie|:headless (Defaults to :firefox)', proxy: 'optional - scheme://proxy_host:port || tor' ) browser_obj = #{self}.onion( browser_obj: 'required - browser_obj returned from #open method' ) browser_obj = #{self}.close( browser_obj: 'required - browser_obj returned from #open method' ) #{self}.authors " end |
.onion(opts = {}) ⇒ Object
- Supported Method Parameters
-
browser_obj = PWN::WWW::Pastebin.onion(
browser_obj: 'required - browser_obj returned from #open method'
)
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/pwn/www/pastebin.rb', line 29 public_class_method def self.onion(opts = {}) browser_obj = opts[:browser_obj] browser = browser_obj[:browser] browser.goto('http://lw4ipk5choakk5ze.onion') browser_obj rescue StandardError => e raise e end |
.open(opts = {}) ⇒ Object
- Supported Method Parameters
-
browser_obj = PWN::WWW::Pastebin.open(
browser_type: 'optional - :firefox|:chrome|:ie|:headless (Defaults to :firefox)', proxy: 'optional - scheme://proxy_host:port || tor'
)
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/pwn/www/pastebin.rb', line 13 public_class_method def self.open(opts = {}) browser_obj = PWN::Plugins::TransparentBrowser.open(opts) browser = browser_obj[:browser] browser.goto('https://pastebin.com') browser_obj rescue StandardError => e raise e end |