-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[NTLMRelayx.py] :: NTLMRelay if Client has SMB signing required #1128
Comments
Hi @c-f! The modification of the
However, as we are discussing in #1138, the current version of impacket can't relay connections coming from a client that enforces signing due to how the multi-relay capability works. Currently, impacket implements the following process:
If the client forces signing, the previous flow stops after point 2. We never receive the TreeConnect request in step 3 because we can't sign the connection. Consequently, we don't have any credentials to relay. That could be the reason why you don't see the I hope I was clear. If you have further questions, let me know. |
Could we add a flag to disable multi-relay capability? If you think it could be a good idea, I can take some time to PR this |
Alright I'll work on this asap |
This hit me today, great find! +1 |
Hi there! FYI, I just added a new option
Closing. Reopen if you have any questions or if you find something not working. Thanks! |
Configuration
impacket version: master (cd4fe47)
Python version: 3.7.7
Target OS: fedora-33
Debug Output With Command String
Sorry if i misinterpreted something but i was wondering if i can modify the
security mode
flag in SMB for the client.To my understanding the packets from the client (connects to ntlmrelayx) will be forwarded directly to the target without any
modification. However if the client enforces a signature and the server doesn't than the relay is not forwarded to the target at all.
Thus i want to toggle the ''Security mode'' to remove the required signing (sent to the target). However in my attempts i was not successful in modifying impacket to my needs.
The idea is heavily copied from hackndo :) with his very good article about ntlm relaying. Based on the Matrix below this should work.
Thanks,
c-f
PCAP
- . -
Additional context
The text was updated successfully, but these errors were encountered: