Skip to content

Instantly share code, notes, and snippets.

@5teven1in
Created September 24, 2020 17:11
Show Gist options
  • Save 5teven1in/e24ea0d58b9cd5102f58d407866b024b to your computer and use it in GitHub Desktop.
Save 5teven1in/e24ea0d58b9cd5102f58d407866b024b to your computer and use it in GitHub Desktop.

Easy Crack

Concept

  • basic reverse
  • static analysis
  • string comparison

Solution

There are only few functions and focus on sub_401080 function (0x00401080) in DialogFunc (0x00401020).

And it is a simple check like this:

...
if ( v3[0] != 'a' || strncmp(&v3[1], Str2, 2u) || strcmp(&v3[3], aR3versing) || String != 'E' )
    return MessageBoxA(hDlg, aIncorrectPassw, Caption, 0x10u);
...

Figure out each string and variable value to make the constraint hold, so we can get the flag Ea5yR3versing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment