Nmap Scan
- Scan single ip (simple sacn)
nmap <target ip>
- Scan a host
nmap <host name>
ex-
nmap www.google.com
- Scan a range ips
nmap <ip ranges>
ex-
nmap 10.10.10.113-120
- Scan target host from a file
nmap <txt file>
"nmap -iL list-of-ips.txt"
Nmap Port Selection
- scan a single port
nmap -p <targeted ip address>
- Scan 100 most common ports (Fast)
nmap -F <targeted ip address>
example -
nmap -F 192.168.1.1
- Service and OS Detection
nmap -A <targeted ip address>
- Standard service detection
nmap -sV <targeted ip address>
- Scan using default safe scripts
nmap -sV -sC <targetes ip address>
Nmap Output Formats
- Save default output to file
nmap -oN outputfile.txt 192.168.1.1
- Save results as XML
nmap -oX outputfile.xml 192.168.1.1
- Save results in a format for grep
nmap -oG outputfile.txt 192.168.1.1
- Save in all formats
nmap -oA outputfile 192.168.1.1
HTTP Service Information
- Gather page titles from HTTP services
nmap --script=http-title 192.168.1.0/24
Comments
Post a Comment