Network Reconnaissance
Host discovery
nmap -sn <subnet>
Port scanning
nmap -p- -sSCV -n -Pn --min-rate 10000 -v <target_ip>
nmap -p $PORTS --script <script> <target_ip>
You can list all available Nmap scripts using the following commands:
# List nmap nse scripts ls /usr/share/nmap/scripts | grep <service> # Get info about a script nmap --script-help <script>