README.md Update

This commit is contained in:
ByeonJungHun
2024-01-04 14:35:01 +09:00
parent a935339d2f
commit b998417c97
4 changed files with 13 additions and 12 deletions

View File

@@ -1,2 +1,4 @@
| 이름 | IP | 상태 요약 | 상세 보기 | | 이름 | 상태 요약 | 상세 보기 |
| --- | --- | --- | --- | | --- | --- | --- |
| cmoa-master-1 | 취약 | http://10.10.43.42:8080/cmoa-master-1.txt |
| cmoa-worker1-1 | 취약 | http://10.10.43.42:8080/cmoa-worker1-1.txt |

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
resultfile="Results_$(date '+%F_%H:%M:%S').txt" resultfile="/tmp/$(hostname).txt"
U_01() { U_01() {
echo "" >> $resultfile 2>&1 echo "" >> $resultfile 2>&1

View File

@@ -16,13 +16,11 @@
when: "'nas' in group_names" when: "'nas' in group_names"
- debug: - debug:
msg: "취약점 {{ item }} 발견" msg: "취약점 {{ check_status.stdout_lines }} 발견"
loop: "{{ check_status.stdout_lines }}"
when: "'nas' in group_names" when: "'nas' in group_names"
- debug: - debug:
msg: "취약점 {{ item }} 양호" msg: "취약점 {{ check_ok.stdout_lines }} 양호"
loop: "{{ check_ok.stdout_lines }}"
when: "'nas' in group_names" when: "'nas' in group_names"
- name: Create README.md - name: Create README.md
@@ -42,3 +40,4 @@
- debug: - debug:
msg: "결과 확인 : https://github.com/CloudMOA/security_check.git" msg: "결과 확인 : https://github.com/CloudMOA/security_check.git"
when: "'nas' in group_names"

View File

@@ -1,8 +1,8 @@
| 이름 | IP | 상태 요약 | 상세 보기 | | 이름 | 상태 요약 | 상세 보기 |
| --- | --- | --- | --- | | --- | --- | --- |
{% for vulnerable in check_status.stdout_lines %} {% for vulnerable in check_status.stdout_lines %}
| {{ vulnerable|splitext|first }} | {{ hostvars[vulnerable|splitext|first]['ansible_host'] }} | 취약 | http://10.10.43.42:8080/{{ vulnerable }} | | {{ vulnerable|splitext|first }} | 취약 | http://10.10.43.42:8080/{{ vulnerable }} |
{% endfor %} {% endfor %}
{% for good in check_ok.stdout_lines %} {% for good in check_ok.stdout_lines %}
| {{ good|splitext|first }} | {{ hostvars[vulnerable|splitext|first]['ansible_host'] }} | 양호 | http://10.10.43.42:8080/{{ good }} | | {{ good|splitext|first }} | 양호 | http://10.10.43.42:8080/{{ good }} |
{% endfor %} {% endfor %}