
CVE-2015-0235 취약점 확인용 Ansible 플레이북
CVE-2015-0235 취약점을 확인하기 위한 Ansible 플레이북입니다. 시카고 대학교에서 제공한 테스트 프로그램(링크)을 기반으로 합니다. Ansible을 사용하면 테스트할 많은 호스트 머신을 한 번에 지정할 수 있습니다.
이 플레이북은 어떤 것도 패치하거나 재시작하지 않습니다. 시스템이 영향을 받는지 여부만 보고합니다.
원격 시스템에 gcc가 설치되어 있다고 가정합니다.
호스트에서 이 플레이북을 함부로 실행하지 마세요. 먼저 코드를 읽고 어떤 작업을 하는지 확인하세요 :)
Ansible이 필요합니다. ghost.yml:2의 user: your_remote_user를 원격 시스템에 맞게 변경하세요.
pip install ansible
ansible-playbook -i hosts_to_test ghost.yml
af:ghost aaronfay$ ansible-playbook ghost.yml -i aaron_host
PLAY [all] ********************************************************************
GATHERING FACTS ***************************************************************
ok: [foobar.com]
TASK: [copy the GHOST script to the machine] **********************************
ok: [foobar.com]
TASK: [compile it] ************************************************************
ok: [foobar.com]
TASK: [run it!] ***************************************************************
ok: [foobar.com]
TASK: [show me the results] ***************************************************
ok: [foobar.com] => {
"ghost.stdout_lines[0]": "vulnerable"
}
PLAY RECAP ********************************************************************
foobar.com : ok=5 changed=0 unreachable=0 failed=0