Scanning and Enumeration
Brief Dump of useful scanning tools and useful scripts. Heavily network focused, web application scanning and testing will be covered in another section
Useful NMAP Commands
nmap -p- -A -T4 -iL <input file> -oA <output file>
# -p- all ports
# all scripts
grep for <text> in <file> | cut on the delimiter "Space" and grab the 2nd field | sort unique + natural sort of (version) numbers within text | put & append into <file>
grep '/open/' ./nmap/s_u_live.gnmap | cut -d " " -f2 | sort -uV | tee -a ./nmap/hosts-live.txt
grep 'Host'
smb
grep '445/open/tcp//' ./nmap/s_u_live.gnmap | cut -d " " -f2 | sort -uV | tee -a ./nmap/hosts-smb.txt
https
grep '443/open/tcp//' ./nmap/s_u_live.gnmap | cut -d " " -f2 | sort -uV | tee -a ./nmap/hosts-ssl.txt
ssh
grep '22/open/tcp//' ./nmap/s_u_live.gnmap | cut -d " " -f2 | sort -uV | tee -a ./nmap/hosts-ssh.txt
Telnet
grep '23/open/tcp//' ./nmap/s_u_live.gnmap | cut -d " " -f2 | sort -uV | tee -a ./nmap/hosts-telnet.txt
++common ports + vulns
# NMAP
# Just for LDAP Account managers
nmap 10.20.10.4 -p80,443,389,636 -sC -sV -Pn -n
# Turn a file of CIDR IP's into a full IP list
nmap -sL -n -iL internalTargets.txt | grep "Nmap scan report" | awk '{print $NF}'
RustScan
Multiple IP Scanning
Host Scanning
CIDR support
Hosts file as input
Individual Port Scanning
Multiple selected port scanning
Ranges of ports
Adjusting the Nmap arguments
Exploit Research
Random Commands
Last updated
