Week 4 - Active Infomation Gathering
| OSI Model | DoD Model | TCP/IP Suite of Protocols |
|---|---|---|
| 7. Application | Application (Port) | HTTP(80) / SMTP(25) / Telnet(23) / NNTP(119) |
| 6. Presentation | ^ | ^ |
| 5. Session | ^ | ^ |
| 4. Transport | Host to Host | TCP / UDP |
| 3. Network | Internet | ICMP, IP, ARP |
| 2. DataLink | Network Access | Network Devices |
| 1. Physical | ^ | ^ |
- 80 - HTTP
- 443 - HTTPS
| Client | Connection | Server |
|---|---|---|
| SYN | -> | |
| <- | SYN-ACK | |
| ACK | -> |
Open Port:
| Client | Connection | Server |
|---|---|---|
| SYN | -> | |
| <- | SYN-ACK | |
| RST | -> |
Closed Port:
| Client | Connection | Server |
|---|---|---|
| SYN | -> | |
| <- | RST |
Open Port:
| Client | Connection | Server |
|---|---|---|
| SYN | -> | |
| <- | SYN-ACK | |
| ACK-RST | -> |
Closed Ports:
| Client | Connection | Server |
|---|---|---|
| SYN | -> | |
| <- | RST |
Open Ports:
| Client | Connection | Server |
|---|---|---|
| UDP | -> | |
| <- | NO RESPONCE |
Closed Ports:
| Client | Connection | Server |
|---|---|---|
| UDP | -> | |
| <- | ICMP Error |
Open Ports:
| Client | Connection | Server |
|---|---|---|
| FIN | -> | |
| <- | NO RESPONCE |
Closed Ports:
| Client | Connection | Server |
|---|---|---|
| FIN | -> | |
| <- | RST |
- Xmas Scan
- Null scan
- TCP ACK scan
- Idle scan
- FTP bounce scan
- Fragmented scan
- Strobe scan
- Windows scan
- Service fingerprint scan
- Firewalls
- Custom Rules (Block unwantedports/IPs)
- Block ICMP
- IDS/IPS
- Update firmware/OS/patches
- Test networks
- Reverse Proxy
- Enumeration is the systematic process of gathering information about a target machine by actively connecting to it.
Service Enumeration is able to collect: - User Accounts - Network Map - Ports - Services - Credentials - Guest Logins - Policies - etc
Most services will give you a banner when connecting to it. So banner grabbing is getting that banner as it can give infomation about what softwere is running on tha machine.
- Disable banners (or use fake)
- Disable unnecessary services
- Some lockdown tools/plugins available
- Filter in an application gateway (proxy)
- Hide file extensions (application mapping)
- Override default error messages