This is a proof-of-concept project which uses Selenium and BrowserMob Proxy to inspect websites for malicious JavaScript.
First clone the project:
git clone https://github.com/brad-anton/SiteParser.git
The set up a virutal environment
pip install virtualenv
cd SiteParser
virtualenv venv
source venv/bin/activate
Install dependancies (these need to be cleaned up)
pip install -r requirements.txt
You'll also need Java for Selenium and BrowserMob
To get started modify site_parser.py
and set the url
variable appropriately. Then run
python site_parser.py