|
|
|
|
|
by lawl
4781 days ago
|
|
Well, to be fair it's rather easy to spot what this is doing. Looking at the last two lines of code: assert(!setuid(0));
return execl("/bin/bash", "-sh", NULL);
It spawns a root shell, so it's (probably) a (local) privilege escalation. |
|
Anybody could submit some unreadable C code that finishes up with setuid(0) and exec("/bin/sh") - it isn't interesting without an explanation of what it's doing.