Checking services in registry

This commit is contained in:
Thorsten Sick 2014-02-20 15:45:23 +01:00
parent 79bf3e7430
commit 7dd7563aee
3 changed files with 46 additions and 0 deletions

View File

@ -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 {

View File

@ -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, &regkey);
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
**/

View File

@ -18,6 +18,8 @@ int vbox_reg_key7();
int vbox_reg_key8();
int vbox_reg_key9();
int vbox_sysfile1();
int vbox_sysfile2();