mirror of
https://github.com/a0rtega/pafish
synced 2024-11-21 22:01:56 +03:00
re #45 Add uptime test
This commit is contained in:
parent
6b27791837
commit
eac42caae3
@ -159,3 +159,8 @@ int gensandbox_less_than_onegb() {
|
||||
return (statex.ullTotalPhys/1024) < 1048576 ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
int gensandbox_uptime() {
|
||||
/* < ~12 minutes */
|
||||
return GetTickCount() < 0xAFE74 ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
|
@ -22,4 +22,6 @@ int gensandbox_one_cpu_GetSystemInfo();
|
||||
|
||||
int gensandbox_less_than_onegb();
|
||||
|
||||
int gensandbox_uptime();
|
||||
|
||||
#endif
|
||||
|
@ -138,6 +138,10 @@ int main(void)
|
||||
&gensandbox_less_than_onegb,
|
||||
"Sandbox traced by checking if pysical memory is less than 1Gb",
|
||||
"hi_sandbox_pysicalmemory_less_1Gb");
|
||||
exec_check("Checking operating system uptime using GetTickCount()",
|
||||
&gensandbox_uptime,
|
||||
"Sandbox traced by checking operating system uptime using GetTickCount()",
|
||||
"hi_sandbox_uptime");
|
||||
|
||||
/* Hooks detection tricks */
|
||||
print_check_group("Hooks detection");
|
||||
|
Loading…
Reference in New Issue
Block a user