Skip to content

Instantly share code, notes, and snippets.

@jayaramyalla
Forked from jgamblin/nmapburp.sh
Created September 7, 2018 19:07
Show Gist options
  • Save jayaramyalla/006555a1ea9c96f1e9b6a6023ea62340 to your computer and use it in GitHub Desktop.
Save jayaramyalla/006555a1ea9c96f1e9b6a6023ea62340 to your computer and use it in GitHub Desktop.
NMap a network and send all open web servers to Burp.
#!/bin/bash
#Script to Scan All Sites Found With A Simple NMAP Scan With Burp.
sites=$(nmap "$1" --open 443 --resolve-all --open -oG - | awk 'NR!=1 && /open/{print $2}')
for site in $sites
do
curl -vgw "\\n" 'http://127.0.0.1:1337/v0.1/scan' -d '{"urls":["'"$site"'"]}' > /dev/null 2>&1
printf "Scanning %s with burp.\\n" "$site"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment