Created
October 19, 2015 15:14
-
-
Save blaquee/852518f00d7f03c823e6 to your computer and use it in GitHub Desktop.
anti-debug1
This file contains hidden or 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 <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