Skip to content

Instantly share code, notes, and snippets.

@noobsdt
Created July 4, 2020 13:50
Show Gist options
  • Save noobsdt/25856496cb635200c865533680c9ab70 to your computer and use it in GitHub Desktop.
Save noobsdt/25856496cb635200c865533680c9ab70 to your computer and use it in GitHub Desktop.
#!/bin/bash
while IFS="" read -r p
do
strip=$(echo $p | sed 's/https\?:\/\///')
masscan -p1-65535 $(dig +short $strip|grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b"|head -1) --max-rate 1000
done < $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment