How is rpcclient instead of smbclient used in theis command line:
for i in `export LC_ALL=C; findsmb 2> /dev/null | egrep '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | tr -s " " | cut -f2 -d ' ' | uniq | sort`; do echo $i; echo ---------------; export LC_ALL=C; smbclient -N -L $i 2> /dev/null | grep Printer; echo; done
How is rpcclient instead of smbclient used in theis command line:
for i in `export LC_ALL=C; findsmb 2> /dev/null | egrep '^[0-9] +\.[0-9] +\.[0-9] +\.[0-9] +' | tr -s " " | cut -f2 -d ' ' | uniq | sort`; do echo $i; echo ---------------; export LC_ALL=C; smbclient -N -L $i 2> /dev/null | grep Printer; echo; done