lib/pwn/plugins/transparent_browser.rb in pwn-0.5.181 vs lib/pwn/plugins/transparent_browser.rb in pwn-0.5.183
- old
+ new
@@ -484,10 +484,9 @@
url = opts[:url]
browser = browser_obj[:browser]
browser.execute_script('window.open()')
- switch_tab(browser_obj: browser_obj, keyword: 'about:about')
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 }