Nmap
TLDR;
TARGET_MACHINE='<ip_address>'
ports=$(nmap -p- --min-rate=1000 -T4 ${TARGET_MACHINE} | grep '^[0-9]' | cut -d '/' -f 1 | tr '\n' ',' | sed s/,$//)
nmap -sC -sV -p$ports ${TARGET_MACHINE}Nmap-nse
Scanning
Stealth/SYN Scanning
TCP Scanning
UDP Scanning
TCP/UDP Scanning
Network Scanning/Sweeping
Common ports scanning/Sweeping
Nmap with Grep
OS fingerprint
Banner Grabbing & Service Enumeration
Scanning for the NetBIOS Service
Scripting Engine (NSE)
Nmap SMB NSE Scripts
Scripts
Last updated