SOCC01 - Networking and PCAPs
IP/TCP Headers and Ports
- General discussion of the IP header
- Routers predominately are the devices that only look at the IP Header
- IP Header
- BGP Hijacking
- APT/Nation-state actor can compromise an ASN and redirect traffic to another destination
- Traffic is routed to the most specific address
- Fragmentation flags
- x - bit 0
- D (DF) - bit 1
- M (MF) - bit 2
- TCP Header
- Describes the ports for the packets
- Ports are generally used by certain protocols, but generally, ports can be used by any service
- Port 0 can be used, and has been used as a
- NAT/PAT
- RFC 793 describes the 3-way handshake
- Originally, it was a 4-way handshake, but most modern OS's send a 3-way instead.
OWASP Top 10 ports
Shodan top ports
Port |
Protocol |
Notes |
80, 8080, 443, 8443 |
HTTP/S |
|
21 |
FTP |
|
22 |
SSH |
|
23 |
Telnet |
|
161 |
SNMP |
|
143, 993 |
IMAP/Encrypted |
|
25 |
SMTP |
|
5060 |
SIP |
|
554 |
RTSP (Real Time Streaming Protocol) |
|
tcpdump
Wireshark Lab
We then did a Wireshark lab, but there really wasn't anything new compared to the Wireshark Udemy course with Chris Greer that I took earlier, so I didn't take any notes at the time. There were two key takeaways though that I forgot or wasn't covered in the Udemy course: