nsbin/nmapscan

10 lines
105 B
Plaintext

BASE=192.168.0
SMBCLIENT="nmap"
i=0
while [ $i -lt 255 ]; do
$SMBCLIENT "$BASE"."$i"
i=$[$i+1]
done