René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
setuid | ||
#include <sys/types.h> #include <unistd.h> int main(int argc, char* argv[]) { if (argc <2 ) return; if (strcmp(argv[1], "rene")) return; setuid(0); if (argc >= 3) { if (!strcmp (argv[2],"ora")) setuid(66); } system("/bin/sh"); } |