Created
June 18, 2015 09:55
-
-
Save evernick/66d881f7903d73afe0bd to your computer and use it in GitHub Desktop.
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 <io.h> | |
int anti_debug() | |
{ | |
char strPath[] = { "C:\\Windows\\system32\\drivers\\vmmouse.sys" }; | |
if( !access( strPath, 0) ) | |
return 1; | |
return 0; | |
} | |
int main(int argc, char **argv) | |
{ | |
if(anti_debug()) | |
printf("VM Detected\n"); | |
else | |
printf("No VM...\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment