up for /24
This commit is contained in:
6
scan.yml
6
scan.yml
@@ -20,6 +20,7 @@
|
||||
# 163.172.0.0/24
|
||||
# 163.172.80.0/28
|
||||
target_network: 163.172.91.0/24
|
||||
target_port: 443
|
||||
# 163.172.0.0/20
|
||||
# 163.172.16.0/20
|
||||
# 163.172.31.0/20
|
||||
@@ -60,7 +61,7 @@
|
||||
delegate_to: localhost
|
||||
|
||||
- ansible.builtin.command:
|
||||
cmd: "masscan {{ target_network }} -p443"
|
||||
cmd: "masscan {{ target_network }} -{{ target_port }}"
|
||||
become: true
|
||||
register: scan_output
|
||||
# pause
|
||||
@@ -97,11 +98,13 @@
|
||||
reverse_dns_list: "{{ reverse_dns_list|default([]) + [item.stdout_lines | join(',')]}}"
|
||||
loop: "{{ reverse_dns.results }}"
|
||||
|
||||
#! remove run once when network range > 24
|
||||
#! take time, can be better
|
||||
- ansible.builtin.file:
|
||||
path: "{{ playbook_dir }}/scan/https/{{ item.invocation.module_args.host.split('.')[0] }}/{{ item.invocation.module_args.host.split('.')[1] }}/"
|
||||
state: directory
|
||||
loop: "{{ cert.results }}"
|
||||
run_once: true
|
||||
when: item.invocation is defined
|
||||
|
||||
#! take time, can be better
|
||||
@@ -112,6 +115,7 @@
|
||||
create: yes
|
||||
loop: "{{ cert.results }}"
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
when: item.invocation is defined
|
||||
|
||||
- ansible.builtin.lineinfile:
|
||||
|
||||
Reference in New Issue
Block a user