lib/pwn/plugins/transparent_browser.rb in pwn-0.4.700 vs lib/pwn/plugins/transparent_browser.rb in pwn-0.4.701
- old
+ new
@@ -32,22 +32,22 @@
@@logger = PWN::Plugins::PWNLogger.create
# Supported Method Parameters::
# browser_obj1 = PWN::Plugins::TransparentBrowser.open(
# browser_type: :firefox|:chrome|:headless|:rest|:websocket,
- # proxy: 'optional - scheme://proxy_host:port || :tor',
+ # proxy: 'optional - scheme://proxy_host:port || tor',
# with_devtools: 'optional - boolean (defaults to false)'
# )
public_class_method def self.open(opts = {})
this_browser = nil
browser_type = opts[:browser_type]
proxy = opts[:proxy].to_s unless opts[:proxy].nil?
tor_obj = nil
- if opts[:proxy] == :tor
- tor_obj = PWN::Plugins::Tor.start if opts[:proxy] == :tor
+ if opts[:proxy] == 'tor'
+ tor_obj = PWN::Plugins::Tor.start
proxy = "socks5://#{tor_obj[:ip]}:#{tor_obj[:port]}"
end
opts[:with_devtools] ? (with_devtools = true) : (with_devtools = false)
@@ -341,10 +341,10 @@
public_class_method def self.help
puts "USAGE:
browser_obj1 = #{self}.open(
browser_type: :firefox|:chrome|:headless_chrome|:headless_firefox|:rest|:websocket,
- proxy: 'optional scheme://proxy_host:port || :tor',
+ proxy: 'optional scheme://proxy_host:port || tor',
with_devtools: 'optional - boolean (defaults to false)'
)
puts browser_obj1.public_methods
********************************************************