diff --git a/pafish/main.c b/pafish/main.c index d7f7b24..da10358 100644 --- a/pafish/main.c +++ b/pafish/main.c @@ -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 { diff --git a/pafish/vbox.c b/pafish/vbox.c index 47c53e5..e34a608 100644 --- a/pafish/vbox.c +++ b/pafish/vbox.c @@ -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