Skip to content

Scan network and connect to discovered hosts via ClusterSSH

nmap -p22 172.16.0.0/22 --open | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}'|sort -n|uniq | grep -v "172.16.0.1" | sed 's/^/admin@/g' | tr -s '\r\n' ' ' | xargs cssh

 

Leave a Reply

Your email address will not be published. Required fields are marked *

π