1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-08 23:49:03 +00:00
Files
nmap/nselib
ron 727661921a Implemented some changes (mostly in error handling) to let smb scripts run in parallel with each other against a single host. Previously, I had used a mutex to prevent that from happening. The changes are summarized in the following post: http://seclists.org/nmap-dev/2010/q3/819, but it comes down to three things:
1) Set the 'vc' ('virtual circuit') id to a non-zero value (if it's 0, the smb server will disconnect all hosts who are already connected)
2) Handle the authentication error NT_STATUS_REQUEST_NOT_ACCEPTED, which indicates that there are too many connected hosts (11 is the default on most versions of Windows, or 10 for the anonymous account). If we see the error, we wait and try again. 
3) Handle the file creation error, NT_STATUS_PIPE_NOT_AVAILABLE, which appears to be caused by a race condition of some sort. It happens when a large number of connections are attempted simultaneously, and is fixed by a short backoff (50ms worked fine, but I'm using 100ms)
The end result is a significant speedup in our SMB checks without losing data.
2010-10-03 22:40:41 +00:00
..
2010-08-16 18:59:30 +00:00
2010-03-31 20:28:14 +00:00
2010-08-16 18:59:30 +00:00
2010-08-16 18:59:30 +00:00
2010-08-16 18:59:30 +00:00
2010-08-16 18:59:30 +00:00
2010-08-16 18:59:30 +00:00
2010-09-13 17:51:34 +00:00