I am working on a script to search over an IP range and find all the available shares on a Windows network. To thoroughly test the software, I wanted to have long final names (e.g. Fun Disk Share Disk Fun!) to see if my code could figure out the name of the share. However this is the output I get when I run
smbclient -L //chemzar -N
Code:
added interface ip=137.99.169.118 bcast=137.99.171.255 nmask=255.255.252.0
Got a positive name query response from 137.99.25.50 ( 137.99.169.118 )
Domain=[UCONN] OS=[Unix] Server=[Samba 2.2.8]
Sharename Type Comment
--------- ---- -------
My Downloads Disk Fun Stuff
Fun Disk Stuf Disk
IPC$ IPC IPC Service (Andys Computer in Linux)
ADMIN$ Disk IPC Service (Andys Computer in Linux)
Server Comment
--------- -------
CHEMZAR Andys Computer in Linux
D2JJLC11 Mama
Workgroup Master
--------- -------
UCONN D2JJLC11
As you can see the folder has been truncated, which will cause problems with my script. Any suggestions on how to get around this problem (smbmount can mount the directory).
Thanks