CEH Module 3 - Networks Scanning
CEH Module 3 - Networks Scanning
Network
Scanning-------------------------------------------------------------------------
-
# TCP vs UDP
- TCP and UDP (Transmission Control Protocol and User
Datagram Protocol) are communications protocol that facilitate
the exchange of message (in form of Packets) between
computer devices in a network. These protocols decide how
packet will reach the destination. 65535
**TCP**
**UDP**
------------------------------------------------------------------------------------
---------------------------
# Practical Part
------------------
# Main Objectives
k1. **Scan live host**
k2. **Open Ports and Running Services**
k3. **OS and Architecture info**
k4. **Security Implemented (Firewall, IDS, IPS) Detection
and evasion**
1. Live hosts
arp-scan --local
nmap -sn <network>/<cidr> -sn
specify NO-Port Ping Scan
ping <ip>
netdiscover -r <network address>/<cidr>
--------------------------------------------------------------------------
# Nmap Port Scan Status
Open - If No response is received by Nmap, it means Port is
Open for connection.
Closed - If response is received by nmap with RST or SYN
flag, it means ports are closed.
Filtered - May be some kind of firewall is implemented on
client side.
Open/Filtered - Nmap is confused, either port is open or
filtered.
Closed/Filtered - Nmap is confused, either port is closed or
filtered
--------------------------------------------------------------------------
2. Open Ports and Running Services Scan
**Nmap**
nmap <ip>
Normal
Simple Port Scan
nmap -v <ip> Port
Scan with increase verbosity. (-vv is more powerful)
nmap <ip> <ip> <ip>
Scan Multiple host in single go
nmap <network>/cidr
Scan Entire Subnet
nmap -p 1-65535 <ip>
-p specify Port Numbers to scan.
nmap -sU <ip> Scan
1000 Common UDP Ports
nmap -T<0-5> <ip> -T
specify intensity of scan to time taken by scan. 5 is
--------------------------------------------------------------------------
3. OS Detection
nmap -O <ip> OS
Detection with Nmap
--------------------------------------------------------------------------
# We can also use Zenmap
--------------------------------------------------------------------------
--------------------------------------------------------------------------