Skip to content

Instantly share code, notes, and snippets.

@RdlP
Created June 12, 2017 12:23
Show Gist options
  • Save RdlP/6163bb11459bba4b2fa80751fbb96e3f to your computer and use it in GitHub Desktop.
Save RdlP/6163bb11459bba4b2fa80751fbb96e3f to your computer and use it in GitHub Desktop.
#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