LINUX.ORG.RU

История изменений

Исправление e7z0x1, (текущая версия) :

Не работает.

Исходная версия e7z0x1, :

[~/hack] >> id
uid=1000(neg) gid=1000(neg) groups=1000(neg),6(disk),10(wheel),50(games),90(network),92(audio),93(optical),95(storage)
[~/hack] >> gcc -O2 linsploit.c && ./a.out
a.out: linsploit.c:51: sheep: Assertion `!close(fd)' failed.
[1]    5977 abort (core dumped)  ./a.out
[~/hack] >> whoami
neg
[~/hack] >> uname -a
Linux revelation93 3.9.2-1-ARCH #1 SMP PREEMPT Sat May 11 20:31:08 CEST 2013 x86_64 GNU/Linux

[~/hack] >> gcc --version
gcc (GCC) 4.8.0 20130502 (prerelease)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.