katana
katana copied to clipboard
Option to specify system installed chrome binary path
Please describe your feature request:
-scp, -system-chrome-path use specified chrome browser for headless crawling
Describe the use case of this feature:
- For performing authenticated headless crawling.
For example:
katana -headless -scp '/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome' -headless-options '--profile-directory="Default", --user-data-dir="/Users/$USER/Library/Application Support/Google/Chrome/Default"'
Note:
Other changes might be required for this is to open the browser in non-incognito mode; this needs to be checked further to confirm if this option can be controlled using -headless-options or if we need to add an option to disable the default behavior of using incognito session.
https://github.com/projectdiscovery/katana/blob/4301a61e62217b56a94c67e51d3061b6ec72be49/pkg/engine/hybrid/hybrid.go#L164