ShawnDEvans / smbmap

SMBMap is a handy SMB enumeration tool
GNU General Public License v3.0
1.76k stars 343 forks source link

445 not open #47

Closed aaaguirrep closed 4 years ago

aaaguirrep commented 4 years ago

Hi, I am experimenting the next issue when I use smbmap. If I try twice o three times it works.

python3 smbmap.py -H x.x.x.x -u 'myuser' -p 'mypass'
[!] 445 not open on x.x.x.x....

I don't know if the issue is expected or I need to check any thing.

Regards, Arsenio

ShawnDEvans commented 4 years ago

In an effort to squeeze performance I dialed back the TCP socket timeout for open port detection. I slid it back up a few milliseconds. Hopefully this helps. I'll plan on adding a parameter to set this value via the command line.

ShawnDEvans commented 4 years ago

I revamped the entire port detection function, and mapped it to a thread pool. It's a significantly faster, and the timeout is a full second, which should eliminate false negatives. I'm going to close this for now. Thank you for the feedback and bug report!