Skip to content

Instantly share code, notes, and snippets.

@Karlheinzniebuhr
Created September 14, 2018 13:13
Show Gist options
  • Save Karlheinzniebuhr/aaa6969af25aa637f06d449e7642988f to your computer and use it in GitHub Desktop.
Save Karlheinzniebuhr/aaa6969af25aa637f06d449e7642988f to your computer and use it in GitHub Desktop.
Grep all IPs with open ports from nmap output txt
cat nmap_scan.txt | grep -B4 open | egrep -o "([0-9]{1,3}\.){3}[0-9]{1,3}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment