mirror of
https://github.com/a0rtega/pafish
synced 2024-11-22 06:11:18 +03:00
Add NumberOfProcessors via GetSystemInfo detection re #27
This commit is contained in:
parent
1817c3fd0d
commit
882a67a33e
@ -133,3 +133,9 @@ int gensandbox_sleep_patched() {
|
||||
else return TRUE;
|
||||
}
|
||||
|
||||
int gensandbox_one_cpu_GetSystemInfo() {
|
||||
SYSTEM_INFO siSysInfo;
|
||||
GetSystemInfo(&siSysInfo);
|
||||
return siSysInfo.dwNumberOfProcessors < 2 ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
|
@ -16,4 +16,6 @@ int gensandbox_drive_size2();
|
||||
|
||||
int gensandbox_sleep_patched();
|
||||
|
||||
int gensandbox_one_cpu_GetSystemInfo();
|
||||
|
||||
#endif
|
||||
|
@ -175,6 +175,14 @@ int main(void)
|
||||
}
|
||||
else print_not_traced();
|
||||
|
||||
printf("[*] Checking if NumberOfProcessors is < 2 via GetSystemInfo() ... ");
|
||||
if (gensandbox_one_cpu_GetSystemInfo() == TRUE) {
|
||||
print_traced();
|
||||
write_log("Sandbox traced by checking if NumberOfProcessors is less than 2 via GetSystemInfo()");
|
||||
write_trace("hi_sandbox_NumberOfProcessors_less_2_GetSystemInfo");
|
||||
}
|
||||
else print_not_traced();
|
||||
|
||||
/* Hooks detection tricks */
|
||||
printf("\n[-] Hooks detection\n");
|
||||
printf("[*] Checking function DeleteFileW method 1 ... ");
|
||||
|
Loading…
Reference in New Issue
Block a user