Linux anti-debugging techniques.
adbg_env()
: Environment-related signs of debuggingadbg_gdb()
: Try to detect if GDB is handling the current processadbg_proc()
: Detect various debugging tools via information under /proc/${PID}adbg_ptrace()
: Detect if the current process has a tracer
The test routine simply returns from adbg_all()
, which wraps all functions.
- Build and run the test binary:
make && ./adbg-test