2
This commit is contained in:
parent
e08b947761
commit
88495d0b8c
2
2024-6387/.gitignore
vendored
Normal file
2
2024-6387/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
hosts
|
||||||
|
ansible.cfg
|
@ -28,9 +28,15 @@
|
|||||||
register: openssh_version_output
|
register: openssh_version_output
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Parse OpenSSH server version
|
- debug:
|
||||||
|
msg: "{{ openssh_version_output.stdout }}"
|
||||||
|
|
||||||
|
- name: "Parse OpenSSH server version"
|
||||||
set_fact:
|
set_fact:
|
||||||
openssh_version: "{{ openssh_version_output.stdout.split()[1].split('_')[1] }}"
|
openssh_version: "{{ openssh_version_output.stdout.split()[0].split('_')[1] }}"
|
||||||
|
|
||||||
|
- debug:
|
||||||
|
msg: "{{ openssh_version }}"
|
||||||
|
|
||||||
- name: Check if OpenSSH version is affected by CVE-2024-6387
|
- name: Check if OpenSSH version is affected by CVE-2024-6387
|
||||||
set_fact:
|
set_fact:
|
||||||
@ -48,10 +54,4 @@
|
|||||||
- name: Report OpenSSH version and CVE status
|
- name: Report OpenSSH version and CVE status
|
||||||
debug:
|
debug:
|
||||||
msg: >
|
msg: >
|
||||||
OpenSSH version {{ openssh_version }} is
|
OpenSSH version {{ openssh_version }} is {% if is_vulnerable %} ## vulnerable ## {% else %} not vulnerable {% endif %} to CVE-2024-6387.
|
||||||
{% if is_vulnerable %}
|
|
||||||
vulnerable
|
|
||||||
{% else %}
|
|
||||||
not vulnerable
|
|
||||||
{% endif %} to CVE-2024-6387.
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user