smbscan-2 121 Bytes
Newer Older
Nico Schottelius's avatar
Nico Schottelius committed
1 2 3 4 5 6 7 8 9
BASE=192.168.0
SMBCLIENT="smbclient -n NONE -L"

i=0

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