haqpl / automate_knoxss

Automation of KNOXSS extension.

Home Page:https://haqpl.github.io/Automation-of-KNOXSS-entension-using-Selenium-and-Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blog post

https://haqpl.github.io/Automation-of-KNOXSS-entension-using-Selenium-and-Python

Quick start

  1. Install firefox-developer

https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=pl

  1. pip install selenium --user # requires Python

  2. Download geckodriver, it should be placed in /usr/bin or add it to PATH

https://github.com/mozilla/geckodriver/releases

  1. Download XPI with KNOXSS Pro

http://knoxss.me

Important

  1. Login to http://knoxss.me and retrieve session Cookies, pass them to -c argument.

Parameters:

  1. -u or --url - defines the target for the scan
  2. -c or --cookies - defines the session Cookies for logged in user to KNOXSS service
  3. -f or --firefox - defines the location of Firefox Developer edition binary
  4. -a or --addon - defines the location of KNOXSS extension directory, unzipped and modified
  5. -t or --timeout - defines the timout for event

Example usage:

python3 automate_knoxss.py -u "https://target" -c "wordpress_logged_in_...=...; wordpress_sec_...=...; sucuri_cloudproxy_uuid_...=...; wordpress_test_cookie=WP+Cookie+check;" -f /home/firefox/firefox -a knoxss -t 90