Created
June 12, 2017 12:23
-
-
Save RdlP/6163bb11459bba4b2fa80751fbb96e3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sys/ptrace.h> | |
int main(int argc, char *argv[]) { | |
if (ptrace(PTRACE_TRACEME, 0, 1, 0) < 0) { | |
printf("¡Depurador detectado!.\n"); | |
return 1; | |
} | |
printf("No hay depurador\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment