Back to Security Research
Crackme · Difficulty 1.0

crackme_01 — Monsignors Crackme

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.

September 2026 Ghidra 12.1.3, GhidraMCP Crackme

Objective

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.

Environment & Tools

Disassembler
Ghidra 12.1.3 (default auto-analysis)
AI-Assisted Analysis
GhidraMCP + Claude (bridge_mcp_ghidra.py, mcp 1.30.0)

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.

Approach

  1. Imported hello.exe into a new Ghidra project and let auto-analysis run to completion.
  2. Pulled the program's defined strings through GhidraMCP. A small cluster of relevant strings stood out immediately, sitting close together in memory: "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.
  3. To confirm rather than assume, pulled cross-references to the "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.
  4. Decompiled main directly (AI-assisted, via GhidraMCP's decompiler bridge) to see the real logic rather than inferring it from strings alone.

Key Findings

Decompiled main() — Ghidra
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;
}
Finding: the input is read into a 64-byte stack buffer via 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.

Outcome

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.

Runtime verification
PS> .\hello.exe
Enter password: secret
Access granted!

Static finding matched runtime behaviour exactly.

Notes

Scope. This writeup covers a publicly published crackme intended for practice (crackmes.one), analysed entirely offline via static analysis. No real systems, networks, or third-party software were tested. This track is CTF/crackme practice only — not exploit development against real targets.

More writeups coming

This is the first entry in an ongoing reverse-engineering practice log.

Back to Security Research