lib/pwn/plugins/transparent_browser.rb in pwn-0.4.386 vs lib/pwn/plugins/transparent_browser.rb in pwn-0.4.387

- old
+ new

@@ -103,10 +103,13 @@ this_profile = Selenium::WebDriver::Chrome::Profile.new this_profile['download.prompt_for_download'] = false this_profile['download.default_directory'] = '~/Downloads' switches = [] + switches.push('--start-maximized') + switches.push('--disable-notifications') + if proxy switches.push("--host-resolver-rules='MAP * 0.0.0.0 , EXCLUDE #{URI(proxy).host}'") if with_tor switches.push("--proxy-server=#{proxy}") end @@ -185,10 +188,13 @@ this_profile = Selenium::WebDriver::Chrome::Profile.new this_profile['download.prompt_for_download'] = false this_profile['download.default_directory'] = '~/Downloads' switches = [] - switches.push('-headless') + switches.push('--headless') + switches.push('--start-maximized') + switches.push('--disable-notifications') + if proxy switches.push("--host-resolver-rules='MAP * 0.0.0.0 , EXCLUDE #{URI(proxy).host}'") if with_tor switches.push("--proxy-server=#{proxy}") end