by buster · 13y ago · 0 comments
p.s.: same should go for all the "x anounces y" where the posted link neither explains what x is nor what y is.
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.
umm NSFW, if you work at a school.
That's the difference between a power user and a hacker.
A power user RTFM, a hacker RTFS.