Modify hex values in binary
I have an example executable that wants a CD key and I want to crack it so
that the function that checks if the cd key is correct always returns 1.
So I loaded the executable in Vim and ran it through xxd. Then I found the
line that I think is where the return value is (did an objdump on binary,
then looked for hex values for the mov 0x0,eax in the binary and changed
it to look like mov 0x1,eax) and modified properly. I then ran it back
through xxd and saved it. However now it won't let me run the executable.
Why is that?
No comments:
Post a Comment