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

Make crackme06e behave in a similar fashion to crackme06 #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jowadmax
Copy link

First of all, thank you for the great tutorial and the introductory crackmes.
It usually work with ARM assembly and your tutorials got me up and running with x86 disassembly really quickly!

The strncmp here expects 16 characters where the length of "leotindall.com" is only 14.
Since most text editors append '\n' at the end of text files, whenever the user creates a text file containing "leotindall.com" and passing it as an argument, the verification check fails.
The only way I got the original crackme06e to work is by manually replacing the \n at the end of the input text file by a \0 using a hex editor.

This change fixes that problem as I think this was the main intention. Also passing 16 when comparing "leotindall.com" can lead to reading 1 unallocated byte when the user input file is longer than 15 bytes.

First of all, thanks so much for the great tutorial and the introductory crackmes.
It usually work with ARM assembly and your tutorials got me up and running with x86 disassembly really quickly!

The strncmp here expects 16 characters where the length of "leotindall.com" is only 14.
Since most text editors append '\n' at the end of text files, whenever the user creates a text file containing "leotindall.com" and passing it as an argument, the verification check fails.
The only way I got the original crackme06e to work is by manually replacing the \n at the end of the input text file by a \0 using a hex editor.

This change fixes that problem as I think this was the main intention. Also passing 16 when comparing "leotindall.com" can lead to reading 1 unallocated byte when the user input file is longer than 15 bytes.
@pariterre
Copy link

@NoraCodes
I did not know where to thank you, so I am doing it here :P That was fun! I've seen that you made a tutoral as well, I will have a look :)

Just a thought, for me this PR should not be accepted. Indeed, the two projects don't behave the same. However, I found it interesting that I've had to modify the key file with an hexadecimal editor to manually input the \0 at the end. Otherwise, it is pretty straight forward. You look at the disassembled code and you copy the plain text password.

Thanks again for the CrackMes!

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

Successfully merging this pull request may close these issues.

None yet

2 participants