Ida Pro Decompile To C -

If you want to save the decompiled output:

To cement the process, let’s decompile a simple CrackMe binary.

if ( !strcmp(secret_key, "SK-1234") ) return 1; else return 0;

if ( strcmp(input, hardcoded) == 0 ) return puts("Success!"); else return puts("Fail.");

Rename sub_4012B0 to check_password , rename input parameter. Right-click hardcoded and set explicit array type char [11] . The password is revealed.

If you want to save the decompiled output:

To cement the process, let’s decompile a simple CrackMe binary.

if ( !strcmp(secret_key, "SK-1234") ) return 1; else return 0;

if ( strcmp(input, hardcoded) == 0 ) return puts("Success!"); else return puts("Fail.");

Rename sub_4012B0 to check_password , rename input parameter. Right-click hardcoded and set explicit array type char [11] . The password is revealed.

Go to Top