Skip to content

Instantly share code, notes, and snippets.

@003random
Created January 31, 2019 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 003random/2e8aa030df1dd916a8505dbb625ebb67 to your computer and use it in GitHub Desktop.
Save 003random/2e8aa030df1dd916a8505dbb625ebb67 to your computer and use it in GitHub Desktop.
sudo /path/to/masscan/bin/masscan $(dig +short example.com | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | head -1) -p0-10001 --rate 1000 --wait 3 2> /dev/null | grep -o -P '(?<=port ).*(?=/)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment