gisty
16.01.2012 03:10 Gajim5EB62E32
Best of the best of the best linux exploit:
> #!/bin/sh
> echo "r00ted"
> cd /tmp
> cat >root.c <<eof
> int getuid() { return 0; }
> int geteuid() { return 0; }
> int getgid() { return 0; }
> int getegid() { return 0; }
> eof
> gcc -shared root.c -o root.so
> LD_PRELOAD=/tmp/root.so sh
> rm /tmp/root.so /tmp/root.c