title:Linux antidebug 1 keywords:linux,debug,antidebug # Linux antidebug 1 Content: When ptrace is used for programm debugin then only one ptrace can be attached to programmwhen we trying run ptrace with PTRACE_TRACEME then we get -1. I tested with gdb,ald. Also this method should work with IDApro ```c #include #include #include long int ptraced() { return (ptrace(PTRACE_TRACEME, 0, 0, 0) == -1); } int main() { if ( ptraced() ) { printf("Ptraced!\n"); } return 0; } ``` ## Downloads http://archive.main.lv/files/writeup/linux_antidebug_1/antidebug1.tar.gz