top10 Posted May 9, 2016 Share Posted May 9, 2016 [HIDE-THANKS][LENGUAJE=C]bool detectSandbox(char* exeName, char* user){ // Used for detecting sandboxes. So far it detects // Anubis, CW, Sunbelt, Sandboxie, Norman, WinJail. char* str = exeName; char * pch; HWND snd; if( (snd = FindWindow("SandboxieControlWndClass", NULL)) ){ return true; // Detected Sandboxie. } else if( (pch = strstr (str,"sample")) || (user == "andy") || (user == "Andy") ){ return true; // Detected Anubis sandbox. } else if( (exeName == "C:\file.exe") ){ return true; // Detected Sunbelt sandbox. } else if( (user == "currentuser") || (user == "Currentuser") ){ return true; // Detected Norman Sandbox. } else if( (user == "Schmidti") || (user == "schmidti") ){ return true; // Detected CW Sandbox. } else if( (snd = FindWindow("Afx:400000:0", NULL)) ){ return true; // Detected WinJail Sandbox. } else { return false; } }[/LENGUAJE][/HIDE-THANKS] Link to comment Share on other sites More sharing options...
Recommended Posts