Skip to content

Instantly share code, notes, and snippets.

@evernick
Created June 18, 2015 09:55
Show Gist options
  • Save evernick/66d881f7903d73afe0bd to your computer and use it in GitHub Desktop.
Save evernick/66d881f7903d73afe0bd to your computer and use it in GitHub Desktop.
#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