mirror of
https://github.com/a0rtega/pafish
synced 2024-11-28 17:03:16 +03:00
Added pseudo-device vm detection
This commit is contained in:
parent
7830b7a7d6
commit
2902f5f21f
@ -208,6 +208,13 @@ int main(int argc, char *argv[])
|
|||||||
print_not_traced();
|
print_not_traced();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf("[*] Looking for pseudo device ");
|
||||||
|
if (vbox_pseudodev() == 0) {
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
print_not_traced();
|
||||||
|
}
|
||||||
|
|
||||||
/* VMware detection tricks */
|
/* VMware detection tricks */
|
||||||
printf("\n[-] VMware detection\n");
|
printf("\n[-] VMware detection\n");
|
||||||
printf("[*] Scsi port->bus->target id->logical unit id-> 0 identifier ... ");
|
printf("[*] Scsi port->bus->target id->logical unit id-> 0 identifier ... ");
|
||||||
|
@ -228,3 +228,21 @@ int vbox_mac() {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checking for the VirtualBox pseudo device VBoxMiniRdrDN
|
||||||
|
**/
|
||||||
|
int vbox_pseudodev() {
|
||||||
|
int res=1;
|
||||||
|
HANDLE h;
|
||||||
|
|
||||||
|
h = CreateFile("\\\\.\\VBoxMiniRdrDN", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||||
|
if (h != INVALID_HANDLE_VALUE){
|
||||||
|
write_log("VirtualBox traced using MAC starting with 08:00:27");
|
||||||
|
print_traced();
|
||||||
|
write_trace("hi_virtualbox");
|
||||||
|
res = 0;
|
||||||
|
CloseHandle(h);
|
||||||
|
}
|
||||||
|
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -16,4 +16,6 @@ int vbox_sysfile2();
|
|||||||
|
|
||||||
int vbox_mac();
|
int vbox_mac();
|
||||||
|
|
||||||
|
int vbox_pseudodev();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user