Skip to content

Instantly share code, notes, and snippets.

@003random
Created January 31, 2019 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 003random/b8bab378cd46049fe34019194751a3cc to your computer and use it in GitHub Desktop.
Save 003random/b8bab378cd46049fe34019194751a3cc 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) | grep -P "\b(https?|ssl)\b" | tail -n +2 | cut -d '/' -f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment