[Samba] Lightweight NetBIOS host enumeration in Python
Matthew Dempsky
matthew at dempsky.org
Fri Sep 11 16:03:18 MDT 2009
On Fri, Sep 11, 2009 at 2:18 PM, christian <samba at sisyphus.ch> wrote:
> thank you for a nice tool!
Thanks. :)
> __cut__
> Traceback (most recent call last):
> File "nbtls.py", line 39, in <module>
> _addr, rdata = netbios.doit(bcaddr, '\1\2__MSBROWSE__\2', 1, broadcast=True)
> File "/tmp/nbtls/netbios.py", line 83, in doit
> r, (addr, port) = s.recvfrom(4096)
> socket.timeout: timed out
> __cut__
>
> what am i doing wrong?
It looks like it can't find any master browsers on your network. Does
"smbtree -NS" work on this host?
Btw, can I infer from "but on some hosts" that there are other ones
that it does work fine? Does it successfully list all the same names
that "smbtree -NS" does on those?
Thanks for the feedback. :)
More information about the samba
mailing list