-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.cpp
More file actions
43 lines (37 loc) · 1.54 KB
/
example.cpp
File metadata and controls
43 lines (37 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "install_guard.cpp"
int main() {
printf("InstallGuard - Persistence Engine Demo\n");
printf("=======================================\n\n");
printf("[*] Available persistence methods:\n");
printf(" - Registry Run keys (HKCU + HKLM)\n");
printf(" - Scheduled Tasks (ONLOGON + 5min interval)\n");
printf(" - WMI Event Subscription\n");
printf(" - Winlogon Shell append\n");
printf(" - COM Hijack\n");
printf(" - IFEO injection\n");
printf(" - Print Monitor / Network Provider\n");
printf(" - Notification Package\n");
printf(" - Time Provider\n");
printf(" - WER / Terminal Services\n");
printf(" - Natural Language / Fileless Registry\n");
printf(" - Screensaver / UserInit Script\n");
printf(" - Silent Process Exit\n");
printf(" - Explorer Load / Office Template\n");
printf(" - Protocol Handler / Phantom DLL\n");
printf(" - GPO Script / Boot Execution\n");
printf(" - Safe Mode persistence\n");
printf(" - ADS hiding + ACL fortress\n");
printf(" - Guardian watchdog process\n\n");
printf("[!] WARNING: installPersistence() will modify system state.\n");
printf("[?] Type 'yes' to proceed: ");
char buf[16] = {};
fgets(buf, sizeof(buf), stdin);
if (strncmp(buf, "yes", 3) != 0) {
printf("[*] Aborted.\n");
return 0;
}
printf("\n[*] Installing all persistence layers...\n");
installPersistence();
printf("[*] Persistence installation complete.\n");
return 0;
}