amateur Posted September 28, 2021 Share Posted September 28, 2021 (edited) Hello. During coding a keygen i have this issue. The keygenme calculates a SHA-256 which is stored in a string. After that it adds DWORD values of the SHA. Because my english is not so good to explain i put a simpler (similar) example to see whats going on. I have make some progress but i have stuck one this: Why sscanf doesnt put in eax the correct value starting from sha_256[0]. (Eax should contain the value 0x64ec88ca) How i can fix this? -Thank you Edited September 28, 2021 by amateur Addition Link to comment
YANiS Posted September 28, 2021 Share Posted September 28, 2021 sscanf(sha_256, "%8X", &eax); "%8X" Attached (Source and Binary) main32.rar 1 Link to comment
amateur Posted September 28, 2021 Author Share Posted September 28, 2021 Awesome! I was too close! Thank you very much. I tried the width specifiier but not with the sscanf! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now