Binary work, made navigable.
A practical field guide for reading challenge binaries, tracing runtime behavior, and building repeatable local exploits. Use the search, follow the evidence, and keep the exact target in view.
WorkflowStart with the binaryGo from unknown file to a measured, repeatable result.DebuggerLearn pwndbgBreakpoints, run control, values, stack views, and disassembly.Quick referenceLook up a debugger commandSyntax, a working example, what it does, and when to use it.TechniquesChoose a patternRet2win, leaks, ret2libc, ROP, and format-string bugs.PythonUse pwntoolsAutomate local processes, payload bytes, ELF lookups, and ROP.UtilityConvert numbers and bytesSwitch between bases and inspect endian byte layouts.ReferenceFind by symptomJump from a crash, address, or command question to the right page.Static analysisNavigate in GhidraFind inputs, callers, branches, and functions worth debugging.
A useful loop
Section titled “A useful loop”- Identify the binary format, architecture, imports, and protections.
- Trace the input path in Ghidra and form a testable hypothesis.
- Measure the actual runtime behavior in GDB or pwndbg.
- Build a small pwntools script against a local process.
- Verify the result from a clean run and record the evidence.
Find a page quickly
Section titled “Find a page quickly”Use the search box in the header or press Ctrl + K. Search terms like cyclic, RSP, GOT, ASLR, or sendlineafter jump straight to the relevant reference.