@@ -17,7 +17,7 @@ def nmap_scan(
17
17
ip_address = ip_address .strip ()
18
18
19
19
print ("[+] Starting quick nmap scan for %s" % (ip_address ))
20
- QUICKSCAN = "nmap -sC -sV %s -oA '%s/%s.quick'" % (
20
+ QUICKSCAN = "nmap -sC -sV -Pn --disable-arp-ping %s -oA '%s/%s.quick'" % (
21
21
ip_address , output_directory , ip_address )
22
22
quickresults = subprocess .check_output (
23
23
QUICKSCAN , shell = True ).decode ("utf-8" )
@@ -36,7 +36,7 @@ def nmap_scan(
36
36
ip_address ,
37
37
dns_server ))
38
38
print ("[+] Using DNS server %s" % (dns_server ))
39
- TCPSCAN = "nmap -vv -Pn -sS -A -sC -p- -T 3 -script-args=unsafe=1 \
39
+ TCPSCAN = "nmap -vv -Pn --disable-arp-ping - sS -A -sC -p- -T 3 -script-args=unsafe=1 \
40
40
--dns-servers %s -oN '%s/%s.nmap' -oX \
41
41
'%s/%s_nmap_scan_import.xml' %s" % (
42
42
dns_server ,
@@ -45,7 +45,7 @@ def nmap_scan(
45
45
output_directory ,
46
46
ip_address ,
47
47
ip_address )
48
- UDPSCAN = "nmap -vv -Pn -A -sC -sU -T 4 --top-ports 200 \
48
+ UDPSCAN = "nmap -vv -Pn --disable-arp-ping - A -sC -sU -T 4 --top-ports 200 \
49
49
--max-retries 0 --dns-servers %s -oN '%s/%sU.nmap' \
50
50
-oX '%s/%sU_nmap_scan_import.xml' %s" % (
51
51
dns_server ,
@@ -57,7 +57,7 @@ def nmap_scan(
57
57
else :
58
58
print ("[+] Starting detailed TCP%s nmap scans for %s" % (
59
59
("" if no_udp_service_scan is True else "/UDP" ), ip_address ))
60
- TCPSCAN = "nmap -vv -Pn -sS -A -sC -p- -T 3 \
60
+ TCPSCAN = "nmap -vv -Pn --disable-arp-ping - sS -A -sC -p- -T 3 \
61
61
-script-args=unsafe=1 -n %s -oN '%s/%s.nmap' \
62
62
-oX '%s/%s_nmap_scan_import.xml' %s" % (
63
63
dns_server ,
@@ -66,7 +66,7 @@ def nmap_scan(
66
66
output_directory ,
67
67
ip_address ,
68
68
ip_address )
69
- UDPSCAN = "nmap -sC -sV -sU %s -oA '%s/%s-udp'" % (
69
+ UDPSCAN = "nmap -sC -sV -sU -Pn --disable-arp-ping %s -oA '%s/%s-udp'" % (
70
70
ip_address , output_directory , ip_address )
71
71
72
72
udpresult = "" if no_udp_service_scan is True else subprocess .check_output (
0 commit comments