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

Find the encryption key automatically #46

Closed
dzamlo opened this issue Nov 25, 2021 · 5 comments
Closed

Find the encryption key automatically #46

dzamlo opened this issue Nov 25, 2021 · 5 comments

Comments

@dzamlo
Copy link
Contributor

dzamlo commented Nov 25, 2021

This would avoid the need for the user to do the slightly complex process necessary by hand.

The script I posted on the forum should be robust enough if you handle the case where the key is full of zeros.

@ofalvai
Copy link
Owner

ofalvai commented Nov 25, 2021

This is an excellent idea, can you send me the script link please?

@dzamlo
Copy link
Contributor Author

dzamlo commented Nov 25, 2021

https://www.online-python.com/pm93n5Sqg4

The only known case where this fails is when the key is full of zeroes ( b"\x00"*16) and this should be handled specialy.

@ofalvai
Copy link
Owner

ofalvai commented Nov 28, 2021

@dzamlo I tried using this script with a few hex strings posted on the forums, but I couldn't get a single one decrypted, the script simply finished without printing a potential key. Is it something I'm doing wrong here?

image

@dzamlo
Copy link
Contributor Author

dzamlo commented Nov 28, 2021

The example om the screenshot seems to be the one that fail because the user didn't copy the whole response.This won't happen in practice because we handle getting the answer. So just ignore this example .

Does it fails with other example ?

And do you at least get the message with the number of potential key? If not this may due to the way you run the script: try to put the last line outside of the if.

@ofalvai
Copy link
Owner

ofalvai commented Dec 5, 2021

Thank you for the help @dzamlo, I was indeed using an incorrect key.

I made lots of progress based on the Python snippet you posted, the integration can detect the encryption type now automatically: #52

It's released as 0.7.0, let me know if it works for you!

@ofalvai ofalvai closed this as completed Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants