iptables -A INPUT -p tcp –destination-port 60000 -j DROP
masscan 192.168.0.0/24 –rate 10 -p80 –banners -oL result.list –source-port 60000
Optional: masscan -iL target.list –rate 10 -p80 –banners -oL result.list –source-port 60000
cat result.list | cut -d \ -f 4 | sort | uniq | grep -v „^#“> list.ip.raw
python3 -m pip install selenium
cat capture-website-to-image.py
import sys
from selenium import webdriver
url = sys.argv[1]
print(„capturing {}“.format(url))
chromeOptions = webdriver.ChromeOptions()
chromeOptions.add_argument(„–no-sandbox“)
chromeOptions.add_argument(„–disable-setuid-sandbox“)
chromeOptions.add_argument(„–remote-debugging-port=9222“)
chromeOptions.add_argument(„–disable-gpu“)
chromeOptions.add_argument(„start-maximized“)
chromeOptions.add_argument(„disable-infobars“)
chromeOptions.add_argument(„–headless“)
DRIVER = „chromedriver“
driver = webdriver.Chrome(DRIVER, options=chromeOptions)
driver.get(„https://{}“.format(url))
screenshot = driver.save_screenshot(„pic{}.png“.format(url))
driver.quit()
print(„finished {}“.format(url))
cat wrapper-capture-website.bash
#!/bin/bash
for elem in $(cat list.ip); do
echo „starting capture „$elem
python3 capture-website-to-image.py $elem
done
bash wrapper-capture-website.bash