nsbin/smbscan

10 lines
117 B
Bash
Executable File

#!/bin/sh
i=0;
while [ $i -lt 255 ]; do
smbclient -U Administrator -N -W workgroup -L $1.$i
i=$[$i+1]
done