Skip to content

Instantly share code, notes, and snippets.

@Rajchowdhury420
Created February 22, 2021 03:09
Show Gist options
  • Save Rajchowdhury420/5c1a8484347fb9398ec950e327ff1927 to your computer and use it in GitHub Desktop.
Save Rajchowdhury420/5c1a8484347fb9398ec950e327ff1927 to your computer and use it in GitHub Desktop.
ports=$(nmap -p- --min-rate=1000 -T4 $1 | grep ^[0-9] | cut -d '/' -f 1 | tr '\n' ',' | sed s/,$//)
nmap -sC -sV -p$ports $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment