Password Check Bypass
A beginner Windows crackme guarded by a plaintext password check — found and confirmed via static analysis with Ghidra and AI-assisted decompilation through GhidraMCP, then verified dynamically.
Monsignors Crackme
is a difficulty 1.0 Windows crackme by author Monsignor, written in C/C++. The binary
(hello.exe) prompts for a password at the console and reports whether it's
correct. Goal: find the password without guessing, using static analysis.
Claude was used as an AI-assisted analysis layer over Ghidra's decompiler — queried directly for strings, cross-references, and decompiled pseudocode rather than manually clicking through the GUI for each step.
hello.exe into a new Ghidra project and let auto-analysis run to completion."Enter password: ", "secret", "Access granted!\n",
"Access denied!\n". A bare string like "secret" sitting next
to prompt/response text is a strong hint on an easy crackme, but not proof by itself —
it could be a decoy, or transformed before comparison (XOR'd, hashed, reversed) rather
than compared directly.
"Access granted!" string. Both references resolved to a single function:
main. This confirmed the entire check lives inline in main,
with no separate validation routine to hunt down.
main directly (AI-assisted, via GhidraMCP's decompiler bridge) to see the real logic rather than inferring it from strings alone.int __cdecl main(int _Argc,char **_Argv,char **_Env)
{
int iVar1;
char local_48 [64];
__main();
printf("Enter password: ");
scanf("%s",local_48);
iVar1 = strcmp(local_48,"secret");
if (iVar1 == 0) {
printf("Access granted!\n");
}
else {
printf("Access denied!\n");
}
return 0;
}
scanf("%s", ...) (itself a minor, unexploited vulnerability — no bounds
checking) and compared directly against the literal string "secret" with
strcmp. No obfuscation, no transformation, no separate check function — the
visible string genuinely was the password. Confirming this via decompilation, rather than
stopping at the string list, is what turns a guess into a verified finding.
Password: secret. Verified dynamically by running the binary from a
persistent terminal — a bare double-click launches and closes the console before
scanf can be interacted with, since the process exits as soon as
main returns.
PS> .\hello.exe
Enter password: secret
Access granted!
Static finding matched runtime behaviour exactly.
.exe closes its window the instant the process exits, which can look like nothing happened. Running it from an already-open terminal keeps the window alive to read output.This is the first entry in an ongoing reverse-engineering practice log.
Back to Security Research