lib/pwn/plugins/transparent_browser.rb in pwn-0.5.164 vs lib/pwn/plugins/transparent_browser.rb in pwn-0.5.165

- old
+ new

@@ -333,9 +333,12 @@ # browser_obj: 'required - browser_obj returned from #open method)' # ) public_class_method def self.close(opts = {}) browser_obj = opts[:browser_obj] + + return nil unless browser_obj.is_a?(Hash) + browser = browser_obj[:browser] tor_obj = browser_obj[:tor_obj] PWN::Plugins::Tor.stop(tor_obj: browser_obj[:tor_obj]) if tor_obj