/webshot

Script going to addresses from file and take screenshots

Primary LanguagePythonMIT LicenseMIT

📸 WᴇʙSʜᴏᴛ

Script goes to webservices on ip-addresses from file and take screenshots.

It is created as useful addition to masscan utility. Tested on Ubuntu 18.04 & Python 3.7

  • Script base on Selenium, so you need have installed Selenium WebDriver first.
    Link to Selenium Webdriver setup manual
  • Before running script, open webshot.py in editor and check or change variables in the header.
  • Make sure you have .json file generated from Masscan (use -oJ key), or same utilities, with json-format something like this:
{ "ip": "xxx.xxx.xxx.xxx", "ports":[{"port": 80, "proto": "tcp", "status": "open", "reason": "syn-ack", "ttl": 61}]},
{ "ip": "xxx.xxx.xxx.xxx", "ports":[{"port": 80, "proto": "tcp", "status": "open", "reason": "syn-ack", "ttl": 60}]},
{ "ip": "xxx.xxx.xxx.xxx", "ports":[{"port": 80, "proto": "tcp", "status": "open", "reason": "syn-ack", "ttl": 61}]},
...

Script set up to firefox, you may change it in the header.
If you want use custom list-file with IPs, just edit parse_hosts() function so it return list with IPs.