Matthew Dempsky
2009-Sep-11 09:45 UTC
[Samba] Lightweight NetBIOS host enumeration in Python
After giving up on trying to slim down smbtree, I've seemingly worked
out enough of the NetBIOS and SMB/CIFS protocols to implement a
bare-bones replacement in Python. At less than 500 lines, it's pretty
easy to follow, though it's very hackish and badly needs a clean
rewrite (which I'm working on now, in C).
In the mean time, if anyone's interested, the Python code's available
at:
http://shinobi.dempsky.org/~matthew/nbtls/nbtls-0.01.zip
Operation is pretty basic: just unzip and then run "python nbtls.py".
The output should be comparable to "smbtree -NS".
Test reports greatly appreciated. If output differs or nbtls crashes,
output and tcpdump pcap files would be nice too. Off-list replies are
fine.
Thanks!
Matthew Dempsky
2009-Sep-11 19:25 UTC
[Samba] Lightweight NetBIOS host enumeration in Python
As a quick update, with some off-list help, I've updated the code to
resolve a few interoperability issues that showed up on other networks
and to make some of the error handling more robust. To anyone who
downloaded version 0.01, I'd appreciate if you gave 0.05 a shot as
well:
http://shinobi.dempsky.org/~matthew/nbtls/nbtls-0.05.zip
Same operation as before: just unzip and run "python nbtls.py". Test
reports still welcome.
Thanks. :)