Until I learn how to do tcp|ip discovery.
neigh_ssh () { sudo nmap -v -p 22 --open --host-timeout 1 192.168.1.0/25 \ | grep --color=auto -E -o "open port 22.*[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}" \ | grep --color=auto -E -o "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}" \ | sort \ | uniq }
Aucun commentaire:
Enregistrer un commentaire