Skip to content
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

Increase plaintext&hash login speeds #411

Merged
merged 5 commits into from
Oct 6, 2024
Merged

Increase plaintext&hash login speeds #411

merged 5 commits into from
Oct 6, 2024

Conversation

NeffIsBack
Copy link
Contributor

@NeffIsBack NeffIsBack commented Aug 29, 2024

This PR removes unnecessary recreation of connection initialization when a login has failed, we can just reuse that smb connection. As we don't need it with kerberos (and it would be a bit more complicated) it is not changed.

Also create_conn_obj() now checks if we already tested smbv1 and will choose the version accordingly for further connections, to eliminate the amount of connections.

This results in double the speed when testing credentials:
Before (tested with a wordlist containing ~3,6k lines):
image
After:
image

@NeffIsBack NeffIsBack added the enhancement New feature or request label Aug 29, 2024
nxc/connection.py Outdated Show resolved Hide resolved
mpgn
mpgn previously approved these changes Sep 1, 2024
@mpgn mpgn added this to the v1.3.0 milestone Sep 2, 2024
Mercury0 added a commit to Mercury0/NetExec that referenced this pull request Sep 12, 2024
@NeffIsBack NeffIsBack merged commit c1780a1 into main Oct 6, 2024
6 checks passed
@NeffIsBack NeffIsBack deleted the neff-improve-login branch October 6, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants