Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- input=$1
- output=$2
- nmap_result=$3
- echo "[*] Script started"
- cat "$input" | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" > "$output"
- # Add /24 cidr to end of each IP
- sed -e 's,$,/24,' -i "$output"
- cat "$output"
- sudo nmap -sV -A -Pn -v -oN "$nmap_result" -iL "$output"
- echo "[*] Done"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement