Skip to content

Instantly share code, notes, and snippets.

@blaquee
Created October 19, 2015 15:14
Show Gist options
  • Select an option

  • Save blaquee/852518f00d7f03c823e6 to your computer and use it in GitHub Desktop.

Select an option

Save blaquee/852518f00d7f03c823e6 to your computer and use it in GitHub Desktop.
anti-debug1
#include <stdio.h>
#include <stdlib.h>
#include <sys/ptrace.h>
int main(int argc, char** argv)
{
if(ptrace(PTRACE_TRACEME, 0, 0, 0) < 0)
{
printf("Alien presence detected!\n");
exit(0);
}
printf("Continuing the mission\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment