Nmap Manual - https://linux.die.net/man/1/nmap
Nmap Scripts Document (NSE) - https://nmap.org/book/nse-usage.html
Full list of Scripts - https://nmap.org/nsedoc/
nmap --help shows most options.
The most common attack scenario is when an attacker is given the IP address(es) of a machine(s). An attacker would have to enumerate the machine to understand what services are running, and exploit these running services. They do this by scanning ports on the machine they are enumerating. The most common tool used to carry out scans is nmap. Here are the stages you would usually follow when starting out scanning:
ping IP-ADDRESS and nmap -sn IP-ADDRESSNow that you’ve determined a machine is actually up, you can start scanning for services. We’ll start doing this with TCP. You can use nmap to scan for TCP services:
nmap -sT -p port-number -O -sC -sV -T[1-5] -oA output-file-name ip-address
nmap -p- -v --min-parallelism 100 <machine IP> ⇒ Nmap fast scan ( stealth)