-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passwordspraying over SMB does not close connections after failed attempt #401
Comments
Thanks for the report! How do you execute nxc? Using proxychains? And this occurs when several, separat commands have been executed in a row? |
Hey there! For this assessment, we have a windows machine with Proxifier, not proxychains. We're using SOCKS5. Proxifier is set to do DNS over the proxy, the rest is basically set up to only route traffic intended for the customer's domain through the proxy. |
There was a line that was recently added to explicitly close the SMB connection after the protocol instance finished, but I remember we had issues with proxys before... Can you try to limit the concurrent connections ( |
Sadly, even setting -t 10 opens way too many connections (i aborted after 20) |
Hmm that is weird, gonna take a look at it when I got more time |
Describe the bug
nxc smb does not seem to close the connection after a login attempt. This means, that when running nxc smb through a socks proxy, the socks proxy will eventually die due to too many concurrent connections.
To Reproduce
netexec smb target_computer -u user_list.txt -p password
(with user list containing many users, e.g. 64)Expected behavior
After a login attempt via SMB, the connection closes, preventing too many concurrent connections.
NetExec info
The text was updated successfully, but these errors were encountered: