Last updated 3 years ago
I recommend pentest.ws for notetaking. The commands below work in the pentest.ws context.
Discovery all living hosts in a subnet:
$ nmap -sn <cidr> -oG - | grep Up | cut -d' ' -f2
Enumerate open ports and versions:
$ nmap -sT -O -sV --version-all <cidr>