mirror of
https://github.com/a0rtega/pafish
synced 2024-11-24 23:29:39 +03:00
Checking services in registry
This commit is contained in:
parent
79bf3e7430
commit
7dd7563aee
@ -226,6 +226,14 @@ int main(int argc, char *argv[])
|
||||
print_not_traced();
|
||||
}
|
||||
|
||||
printf("[*] Reg key (HKLM\\SYSTEM\\ControlSet001\\Services\\VBox* ... ");
|
||||
if (vbox_reg_key9() == 0) {
|
||||
}
|
||||
else {
|
||||
print_not_traced();
|
||||
}
|
||||
|
||||
|
||||
if (vbox_sysfile1() == 0) {
|
||||
}
|
||||
else {
|
||||
|
@ -282,6 +282,42 @@ int vbox_reg_key8() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Service Regkey detection
|
||||
**/
|
||||
int vbox_reg_key9() {
|
||||
HKEY regkey;
|
||||
int res = 1;
|
||||
LONG retu;
|
||||
int i;
|
||||
const int count = 5;
|
||||
char message[200];
|
||||
|
||||
string strs[count];
|
||||
strs[0] = "SYSTEM\\ControlSet001\\Services\\VBoxGuest";
|
||||
strs[1] = "SYSTEM\\ControlSet001\\Services\\VBoxMouse";
|
||||
strs[2] = "SYSTEM\\ControlSet001\\Services\\VBoxService";
|
||||
strs[3] = "SYSTEM\\ControlSet001\\Services\\VBoxSF";
|
||||
strs[4] = "SYSTEM\\ControlSet001\\Services\\VBoxVideo";
|
||||
|
||||
for (i=0;i<count; i++){
|
||||
retu = RegOpenKeyEx(HKEY_LOCAL_MACHINE, strs[i], 0, KEY_READ, ®key);
|
||||
if (retu == ERROR_SUCCESS) {
|
||||
sprintf(message, "VirtualBox traced registry key %s", strs[i]);
|
||||
write_log(message);
|
||||
res = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (res == 0){
|
||||
print_traced();
|
||||
write_trace("hi_virtualbox");
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* VirtualBox Driver files in windows/system32
|
||||
**/
|
||||
|
@ -18,6 +18,8 @@ int vbox_reg_key7();
|
||||
|
||||
int vbox_reg_key8();
|
||||
|
||||
int vbox_reg_key9();
|
||||
|
||||
int vbox_sysfile1();
|
||||
|
||||
int vbox_sysfile2();
|
||||
|
Loading…
Reference in New Issue
Block a user