Skip to content

Commit

Permalink
Merge pull request #88 from JakobRPennington/master
Browse files Browse the repository at this point in the history
Added --disable-arp-ping to nmap scans
  • Loading branch information
codingo authored Dec 20, 2018
2 parents 7a669d0 + 448ab6d commit 8db10e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Reconnoitre/lib/service_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def nmap_scan(
ip_address = ip_address.strip()

print("[+] Starting quick nmap scan for %s" % (ip_address))
QUICKSCAN = "nmap -sC -sV %s -oA '%s/%s.quick'" % (
QUICKSCAN = "nmap -sC -sV -Pn --disable-arp-ping %s -oA '%s/%s.quick'" % (
ip_address, output_directory, ip_address)
quickresults = subprocess.check_output(
QUICKSCAN, shell=True).decode("utf-8")
Expand All @@ -36,7 +36,7 @@ def nmap_scan(
ip_address,
dns_server))
print("[+] Using DNS server %s" % (dns_server))
TCPSCAN = "nmap -vv -Pn -sS -A -sC -p- -T 3 -script-args=unsafe=1 \
TCPSCAN = "nmap -vv -Pn --disable-arp-ping -sS -A -sC -p- -T 3 -script-args=unsafe=1 \
--dns-servers %s -oN '%s/%s.nmap' -oX \
'%s/%s_nmap_scan_import.xml' %s" % (
dns_server,
Expand All @@ -45,7 +45,7 @@ def nmap_scan(
output_directory,
ip_address,
ip_address)
UDPSCAN = "nmap -vv -Pn -A -sC -sU -T 4 --top-ports 200 \
UDPSCAN = "nmap -vv -Pn --disable-arp-ping -A -sC -sU -T 4 --top-ports 200 \
--max-retries 0 --dns-servers %s -oN '%s/%sU.nmap' \
-oX '%s/%sU_nmap_scan_import.xml' %s" % (
dns_server,
Expand All @@ -57,7 +57,7 @@ def nmap_scan(
else:
print("[+] Starting detailed TCP%s nmap scans for %s" % (
("" if no_udp_service_scan is True else "/UDP"), ip_address))
TCPSCAN = "nmap -vv -Pn -sS -A -sC -p- -T 3 \
TCPSCAN = "nmap -vv -Pn --disable-arp-ping -sS -A -sC -p- -T 3 \
-script-args=unsafe=1 -n %s -oN '%s/%s.nmap' \
-oX '%s/%s_nmap_scan_import.xml' %s" % (
dns_server,
Expand All @@ -66,7 +66,7 @@ def nmap_scan(
output_directory,
ip_address,
ip_address)
UDPSCAN = "nmap -sC -sV -sU %s -oA '%s/%s-udp'" % (
UDPSCAN = "nmap -sC -sV -sU -Pn --disable-arp-ping %s -oA '%s/%s-udp'" % (
ip_address, output_directory, ip_address)

udpresult = "" if no_udp_service_scan is True else subprocess.check_output(
Expand Down

0 comments on commit 8db10e7

Please sign in to comment.