Skip to content

Instantly share code, notes, and snippets.

@bomsi
Created October 30, 2020 08:56
Show Gist options
  • Select an option

  • Save bomsi/946998ec0fb6a42a4f0f23f978a95bec to your computer and use it in GitHub Desktop.

Select an option

Save bomsi/946998ec0fb6a42a4f0f23f978a95bec to your computer and use it in GitHub Desktop.
Extract top 10 most common TCP ports from https://github.com/nmap/nmap/blob/master/nmap-services
grep "\/tcp\s0" nmap-services|awk {'print $3,$2'}|sort -r|awk {'print $2'}|cut -d "/" -f 1|head -n 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment