ShawnDEvans / smbmap

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

libgcc_s.so.1 must be installed for pthread_cancel to work #66

Open luke94Audit opened 3 years ago

luke94Audit commented 3 years ago

Hi,

when running smbmap with the following options, it´ll stop during work with the following error code: _"libgcc_s.so.1 must be installed for pthreadcancel to work" I figured out that his behaviour only appears when you select a very large input file. (~1.200 IPs)

smbmap -u 'user' -p 'pass' -d DOM --host-file [FILE.txt] --dir-only.

When splitting the large host-file into two party (2x600IPs) it works at the beginning. After a while Unforrunately at some point the script throws the error "[!] Error: (<class 'BrokenPipeError'>, 'smbmap', 1337)" for further hosts.

With smaller host-files i never got this errors. Therefore i would assume it might correlate with large host-files.

I tried this on two different kali linux clients with the same result.

Thanks a lot!

ShawnDEvans commented 3 years ago

Thanks for reporting! This one is my white whale. I only encounter it when I'm doing an on site assessment, and have thousands of targets to analyze. I've been chasing it for as long as I can remember. I'm working on refactoring of the entire code base, and I'm hoping that a few changes to the the logoff timing and functionality will help this issue. The solution you came up with was always my fall back when my rushed code changes at some client site failed to rectify the problem.

I'll be sure to keep an eye on this one. It's unreal that you're the first to report it. Glad to see I'm not the only one pilfering large corporate networks with SMBMap.