[Add Scan]
This commit is contained in:
10
scan.yml
10
scan.yml
@@ -116,6 +116,8 @@
|
|||||||
single_branch: yes
|
single_branch: yes
|
||||||
force: true
|
force: true
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
|
||||||
|
|
||||||
- ansible.builtin.command:
|
- ansible.builtin.command:
|
||||||
cmd: "masscan {{ target_network }} -p{{ target_port }}"
|
cmd: "masscan {{ target_network }} -p{{ target_port }}"
|
||||||
@@ -135,6 +137,7 @@
|
|||||||
port: "{{ item.split('/')[0].split(' ')[-1]|int }}"
|
port: "{{ item.split('/')[0].split(' ')[-1]|int }}"
|
||||||
asn1_base64: true
|
asn1_base64: true
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
run_once: true
|
run_once: true
|
||||||
loop: "{{ scan_output.stdout_lines }}"
|
loop: "{{ scan_output.stdout_lines }}"
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
@@ -179,6 +182,7 @@
|
|||||||
# loop_control:
|
# loop_control:
|
||||||
# index_var: my_idx
|
# index_var: my_idx
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
#run_once: true
|
#run_once: true
|
||||||
when:
|
when:
|
||||||
- item.invocation is defined
|
- item.invocation is defined
|
||||||
@@ -193,6 +197,7 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
index_var: my_idx
|
index_var: my_idx
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
when: item.invocation is defined
|
when: item.invocation is defined
|
||||||
|
|
||||||
- ansible.builtin.shell: |
|
- ansible.builtin.shell: |
|
||||||
@@ -205,6 +210,8 @@
|
|||||||
chdir: "{{ playbook_dir }}/scan/"
|
chdir: "{{ playbook_dir }}/scan/"
|
||||||
run_once: true
|
run_once: true
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
|
||||||
|
|
||||||
- community.docker.docker_container_exec:
|
- community.docker.docker_container_exec:
|
||||||
container: scan
|
container: scan
|
||||||
@@ -241,5 +248,6 @@
|
|||||||
ta: "file_folder"
|
ta: "file_folder"
|
||||||
body: "{{ target_network }}"
|
body: "{{ target_network }}"
|
||||||
status_code: 200
|
status_code: 200
|
||||||
tags: test1
|
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user