Check if physical memory is < 1Gb
binsec-zz opened this issue · comments
Hi, the < 1 Gb memory check detects my VM's with 1 Gb memory as "traced".
Is the number based on a bare metal memory amount ?
gensandbox.c
return (statex.ullTotalPhys/1024) < 1048576 ? TRUE : FALSE;
As an example for WinXP;
I'm using Vmware ESX set to 1 Gb, which allocates exactly 1048040 KB
I also checked my VirtualBox, 1 Gb. which also allocates exactly 1048040 KB
So does bare metal 1 Gb actually show 1048576 to the OS, or does it show 1048040 ?
Maybe somebody can verify virtual vs physical (KB).
This could also be used as a flag, if VM's round off 1Gb memory in a special way compared to physical. You could check 512, 1gb, 2gb etc (if there is a mismatch).
Thanks