-
Notifications
You must be signed in to change notification settings - Fork 245
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
add option to statically configure SSP challenge #418
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Thanks!
Two minor suggestions, otherwise it seems good to go!
Did you test it? I'm wondering by how much is this really going to improve cracking speed? Eager to try it out.
pyrdp/security/nla.py
Outdated
""" | ||
Create a new NLA Handler. | ||
sink: layer to forward packets to. | ||
state: NTLMSSPState that is shared between both the client-facing handler and the server-facing handler. | ||
""" | ||
print("init calld") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion to remove the debugging statement
print("init calld") |
pyrdp/security/nla.py
Outdated
""" | ||
challenge = b'%016x' % secrets.randbits(16 * 4) | ||
if self.challenge == None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this None
check should use is
if self.challenge == None: | |
if self.challenge is None: |
36861a7
to
e19efc4
Compare
Sure thing this cannot work when I overwrite the raw challenge with the PDU and then try to use it later again (It worked before renaming
|
Thanks for your contribution! |
@obilodeau, is that what you mean in #405? If yes this fixes #405.