Skip to content

Instantly share code, notes, and snippets.

@augustgl
Created May 16, 2020 02:54
Show Gist options
  • Save augustgl/09d8ca0bd249812a5f679e0ff49f00ed to your computer and use it in GitHub Desktop.
Save augustgl/09d8ca0bd249812a5f679e0ff49f00ed to your computer and use it in GitHub Desktop.
RANGE=$1
PORT=$2
nmap $RANGE -p $PORT -v -n | awk '/is up/ {print up}; {gsub (/\(|\)/,""); up = $NF}' > out.txt
@quantumcore
Copy link

Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment