Skip to content

Commit 686a535

Browse files
authored
Update nmap_scan_multi_dns.py
nmap scan is now a little bit more aggressive, and timeout faster than default.
1 parent f7a1839 commit 686a535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nmap_scan_multi_dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def run_nmap_on_prefix(prefix, tenant, vrf):
6767
"""
6868
logger.info(f"Starting scan on prefix: {prefix}")
6969
# Run nmap on the prefix with DNS resolution and specified DNS servers
70-
command = f"nmap -sn -R -T3 --min-parallelism 10 {prefix}"
70+
command = f"nmap -sn -T4 --min-parallelism 10 --max-retries 2 -R {prefix}"
7171
process = subprocess.Popen(command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
7272
output, error = process.communicate()
7373

0 commit comments

Comments
 (0)