Skip to content

Instantly share code, notes, and snippets.

@spnow
Forked from evernick/MouseDriver.cpp
Created August 1, 2017 23:07
Show Gist options
  • Save spnow/98ddf33251b29894b7e0d2ac41ffded0 to your computer and use it in GitHub Desktop.
Save spnow/98ddf33251b29894b7e0d2ac41ffded0 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