Created
September 14, 2018 13:13
-
-
Save Karlheinzniebuhr/aaa6969af25aa637f06d449e7642988f to your computer and use it in GitHub Desktop.
Grep all IPs with open ports from nmap output txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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