Created
May 16, 2020 02:54
-
-
Save augustgl/09d8ca0bd249812a5f679e0ff49f00ed to your computer and use it in GitHub Desktop.
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
RANGE=$1 | |
PORT=$2 | |
nmap $RANGE -p $PORT -v -n | awk '/is up/ {print up}; {gsub (/\(|\)/,""); up = $NF}' > out.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool!