[huge scan ]

This commit is contained in:
2024-08-22 00:09:34 +02:00
parent 6a1cb33ef4
commit 23609967d0

View File

@@ -4,11 +4,12 @@
become: true become: true
gather_facts: true gather_facts: true
vars: vars:
#TODO target in list
target_network: 163.172.0.0/20
processes_nmap: 5 processes_nmap: 5
category: scale_82 # source: tower
source: tower target_networks:
- 163.172.16.0/20
- 163.172.31.0/20
- 163.172.48.0/20
# 163.172.0.0/20 # 163.172.0.0/20
# 163.172.16.0/20 # 163.172.16.0/20
# 163.172.31.0/20 # 163.172.31.0/20
@@ -33,13 +34,16 @@
- --processes - --processes
- "{{ processes_nmap }}" - "{{ processes_nmap }}"
- --network - --network
- "{{ target_network }}" - "{{ item }}"
- --output=XMLFork - --output=XMLFork
ignore_errors: true ignore_errors: true
loop: "{{ target_networks }}"
loop_control:
#* seconds
pause: 600
- name: Pause for 10 minutes to build app cache # - ansible.builtin.pause:
ansible.builtin.pause: # minutes: 10
minutes: 10
- name: Run SCAN2DB - name: Run SCAN2DB
community.docker.docker_container_exec: community.docker.docker_container_exec:
@@ -48,13 +52,14 @@
- ivre - ivre
- scan2db - scan2db
- "-c" - "-c"
- "{{ category }}" - "{{ item.split('/')[0].split('.') | join('_') }}"
- "-s" - "-s"
- "{{ source }}" - "{{ ansible_host }}"
- "-r" - "-r"
- "scans/NET-{{ target_network.split('/')[0] }}-{{ target_network.split('/')[-1] }}/up" - "scans/NET-{{ item.split('/')[0] }}-{{ item.split('/')[-1] }}/up"
register: scan2db register: scan2db
ignore_errors: true ignore_errors: true
loop: "{{ target_networks }}"
# - debug: # - debug:
# msg: "{{ scan2db }}" # msg: "{{ scan2db }}"