Last active
July 10, 2024 19:25
-
-
Save jimdiroffii/23027c0e654b844cd47022fa06c86072 to your computer and use it in GitHub Desktop.
inline bash cli command for running nmap, just update host IP
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
host=10.10.11.224 && ports=$(sudo nmap -p- --min-rate=1000 -T4 $host -Pn | grep ^[0-9] | cut -d '/' -f 1 | tr '\n' ',' | sed s/,$//) && sudo nmap -p $ports -sV -sC $host -Pn -oN 'nmap_tcp.txt' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If using tmux, update all panes with the environment variable, then just use the command from
ports=
onward.