last update, good night
This commit is contained in:
10
scan.yml
10
scan.yml
@@ -129,7 +129,7 @@
|
|||||||
|
|
||||||
- ansible.builtin.lineinfile:
|
- ansible.builtin.lineinfile:
|
||||||
path: "{{ playbook_dir }}/scan/https/{{ item.invocation.module_args.host.split('.')[0] }}/{{ item.invocation.module_args.host.split('.')[1] }}/{{ item.invocation.module_args.host.split('.')[2] }}.csv"
|
path: "{{ playbook_dir }}/scan/https/{{ item.invocation.module_args.host.split('.')[0] }}/{{ item.invocation.module_args.host.split('.')[1] }}/{{ item.invocation.module_args.host.split('.')[2] }}.csv"
|
||||||
line: "{{ item.invocation.module_args.host }},{{ item.invocation.module_args.port }},{{ nc_port_list[my_idx] }},{{ item.subject.CN | default('no CN') }},{{ item.issuer.C | default('no issuer Country') }},{{ item.issuer.O| default('no issuer Orga') }}"
|
line: "{{ item.invocation.module_args.host }},{{ item.invocation.module_args.port }},{{ nc_port_list[my_idx]|default('no service ??') }},{{ item.subject.CN | default('no CN') }},{{ item.issuer.C | default('no issuer Country') }},{{ item.issuer.O| default('no issuer Orga') }}"
|
||||||
create: yes
|
create: yes
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ cert.results }}"
|
loop: "{{ cert.results }}"
|
||||||
@@ -158,6 +158,14 @@
|
|||||||
- item.subject.CN is defined
|
- item.subject.CN is defined
|
||||||
- "'*' not in item.subject.CN"
|
- "'*' not in item.subject.CN"
|
||||||
|
|
||||||
|
- community.docker.docker_container_exec:
|
||||||
|
container: scan
|
||||||
|
command: gowitness scan single --url "http://{{ item.invocation.module_args.host }}:{{ item.invocation.module_args.port }}" --write-db
|
||||||
|
chdir: /data
|
||||||
|
loop: "{{ cert.results }}"
|
||||||
|
when:
|
||||||
|
- item.subject.CN is not defined
|
||||||
|
|
||||||
# gowitness scan single --url "https://nuage.monassa.fr" --write-db
|
# gowitness scan single --url "https://nuage.monassa.fr" --write-db
|
||||||
|
|
||||||
# - debug:
|
# - debug:
|
||||||
|
|||||||
BIN
screenshots/http---23.134.94.44-32132.jpeg
Normal file
BIN
screenshots/http---23.134.94.44-32132.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
Reference in New Issue
Block a user