lib/pwn/plugins/transparent_browser.rb in pwn-0.5.183 vs lib/pwn/plugins/transparent_browser.rb in pwn-0.5.184

- old
+ new

@@ -484,9 +484,11 @@ url = opts[:url] browser = browser_obj[:browser] browser.execute_script('window.open()') + switch_tab(browser_obj: browser_obj, keyword: 'about:blank') + browser.goto('about:about') if url.nil? rand_tab = SecureRandom.hex(8) browser.execute_script("document.title = '#{rand_tab}'") browser.goto(url) unless url.nil? { title: browser.title, url: browser.url, state: :active }