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

MSSQL module has an undocumented username and password length limit #814

Open
pv2b opened this issue Dec 22, 2022 · 3 comments
Open

MSSQL module has an undocumented username and password length limit #814

pv2b opened this issue Dec 22, 2022 · 3 comments

Comments

@pv2b
Copy link

pv2b commented Dec 22, 2022

The MSSQL module has an undocumented and silent username and password limit of 30 characters.

See here: https://github.com/vanhauser-thc/thc-hydra/blob/master/hydra-mssql.c#L68-L71

It just chops the password off without any warning to the user. I've not yet tried recompiling the code with a higher limit (maybe there are other protocol reasons for this limit?) but that might be worth trying for anyone who needs to explore brute forcing characters longer than 30 characters on MSSQL.

@vanhauser-thc
Copy link
Owner

maybe that comes from a time when that was the max password length? maybe it still is? I don't know, I didn't write the module :)

@pv2b
Copy link
Author

pv2b commented Jan 20, 2023

Thank you for the feedback. Can you clarify what you meant though, did Hydra ever have a max password length of 30? Or are you suspecting maybe early versions of MSSQL had such a password limit?

@vanhauser-thc
Copy link
Owner

it could be that the limit was in early versions of the mssql database. or still is. I dont know.
I don't think there is a length limit for passwords in hydra itself. the modules can restrict the lengths themselves though like the mssql one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants