nsbin/smbmessage

11 lines
163 B
Text
Raw Normal View History

BASE=192.168.0
MESSAGE="Network Failure"
SMBCLIENT="smbclient -n NONE -M"
i=1
while [ $i -lt 255 ]; do
echo $MESSAGE | $SMBCLIENT "$BASE"."$i"
i=$[$i+1]
done