Skip to content

Commit

Permalink
Update nmap_scan_multi_dns.py
Browse files Browse the repository at this point in the history
nmap scan is now a little bit more aggressive, and timeout faster than default.
  • Loading branch information
LoH-lu authored Dec 27, 2024
1 parent f7a1839 commit 686a535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmap_scan_multi_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run_nmap_on_prefix(prefix, tenant, vrf):
"""
logger.info(f"Starting scan on prefix: {prefix}")
# Run nmap on the prefix with DNS resolution and specified DNS servers
command = f"nmap -sn -R -T3 --min-parallelism 10 {prefix}"
command = f"nmap -sn -T4 --min-parallelism 10 --max-retries 2 -R {prefix}"
process = subprocess.Popen(command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, error = process.communicate()

Expand Down

0 comments on commit 686a535

Please sign in to comment.