Skip to content

Instantly share code, notes, and snippets.

@003random
Created January 31, 2019 16:49
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/34343aa778e3f249c22ae10c2c5fb375 to your computer and use it in GitHub Desktop.
Save 003random/34343aa778e3f249c22ae10c2c5fb375 to your computer and use it in GitHub Desktop.
nmap -p $(cat ports.txt | paste -sd "," -) $(dig +short poc-server.com | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | head -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment