|
Install/Use NMAP for Windows/Cygwin |
|
|
|
|
Written by Administrator
|
|
Saturday, 18 April 2009 19:10 |
- Download
- Install to C:\cygwin\bin
- Open cygwin
- Scan your subnet:
- nmap -sP 192.168.1.0/24
- Once subnet is scanned, scan a particular host
- nmap -T4 -A -v -PE -PA21,23,80,3389 192.168.1.197
- Scan a domain for visible ports:
- Administrator@helios ~
$ nmap -p U:53,T:21-25 squidoo.com
Starting Nmap 4.85BETA7 ( http://nmap.org ) at 2009-04-18 12:17 Pacific Daylight Time Interesting ports on squidoo-vip1.client.logicworks.net (209.81.84.27): PORT STATE SERVICE 21/tcp filtered ftp 22/tcp filtered ssh 23/tcp filtered telnet 24/tcp filtered priv-mail 25/tcp filtered smtp
Nmap done: 1 IP address (1 host up) scanned in 1.88 seconds - Scan a single machine for ports between 1-65535
- nmap -A -p 1-65535 192.168.1.197
- Scan a range of IP addresses
- nmap -A -p 1-65535 192.168.1.0-197
- Scan a list of IP addresses
- nmap -A -p 1-65535 10.1.1.2,4,8,16,32,64,128
- Another subnet scan
- nmap -sS -P0 -sV -O 192.168.1.*
- Administrator@helios ~
$ nmap -v -p 80 --randomize_hosts 192.168.1.*
Starting Nmap 4.85BETA7 ( http://nmap.org ) at 2009-04-18 12:38 Pacific Daylight Time Initiating ARP Ping Scan at 12:38 Scanning 192.168.1.197 [1 port] Completed ARP Ping Scan at 12:38, 0.29s elapsed (1 total hosts) Initiating Parallel DNS resolution of 1 host. at 12:38 Completed Parallel DNS resolution of 1 host. at 12:38, 0.00s elapsed Initiating SYN Stealth Scan at 12:38 Scanning 192.168.1.197 [1 port] Completed SYN Stealth Scan at 12:38, 0.01s elapsed (1 total ports) Host 192.168.1.197 is up (0.00088s latency). Interesting ports on 192.168.1.197: PORT STATE SERVICE 80/tcp closed http MAC Address: 00:22:15:A1:21:67 (Asustek Computer)
Read data files from: C:\cygwin\bin\Nmap Nmap done: 1 IP address (1 host up) scanned in 0.60 seconds Raw packets sent: 2 (86B) | Rcvd: 2 (82B)
|
|
Last Updated on Saturday, 18 April 2009 19:50 |