Challenges
Anti-Debug and Ptrace
Reverse engineering
Hard
Linux ptrace anti-debugging analysis
Solves: 7
Anti-Debug and Ptrace
Author: CyberSamSU
Points
80
During actual analysis, programs often use Anti-Debugging techniques to stop the analyst. As soon as this program starts, it checks whether a debugger (e.g. GDB or strace) is attached to it via the Linux ptrace(PTRACE_TRACEME, ...) system call.
If you run it normally under GDB, the program stops immediately with an error message. To solve this challenge, you need to bypass the anti-debug mechanism (by modifying a register in GDB or patching the binary) and then solve the algorithmic part that checks the password.
Attached files
reverse-antidebug
Log in to download
Theory: learn the topic
To submit a flag, log in.