
Playbook Ansible per verificare la vulnerabilità CVE-2015-0235
Playbook Ansible per verificare la vulnerabilità di CVE-2015-0235. Si basa sul programma di test fornito dalla University of Chigago (link). Ansible consente di specificare un gran numero di macchine host da testare contemporaneamente.
Questo non applica patch né riavvia nulla, si limita a segnalare se i tuoi sistemi sono interessati.
Presuppone che gcc sia installato in remoto.
Per favore non eseguire questo arbitrariamente sui tuoi host, leggi prima il codice per capire cosa fa :)
Richiede ansible. Modifica user: your_remote_user in ghost.yml:2 per adattarlo ai tuoi sistemi remoti.
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