Cityscape
Girl

Fundamentals of Penetration Testing

Package structure

Easy
10 min

This module covers the structure and components of an HTTP packet, i.e., a TCP packet, and how Wireshark displays it.


Frame - level

Frame level is not a real protocol in itself, but it is used as the foundation for all protocols above it in Wireshark. It displays captured information, such as the exact time when certain packets were captured.


Ethernet - level

The Ethernet layer is in a sense the lowest layer according to the TCP/IP model, which refers to the link layer. This reveals the source and destination MAC addresses.


Internet Protocol - layer

Internet Protocol level, in this case IPv4 frame refers to the network layer (Internet layer) and reveals, among others.

  • IP protocol version (4)
  • IPv4 frame length in bytes
  • Total length of the packet with IP frame and other data
  • TTL (Time to Live): Remaining time before the packet is discarded, which prevents it from circulating endlessly in the network.
  • Next level protocol
  • Source and destination IP addresses


Transmission Control Protocol (TCP) - layer

This level can also be based on another protocol, such as the UDP protocol, and refers to the transport layer. In this case, however, it is the TCP protocol and it includes, for example:

  • Source port
  • Target port
  • The sequence number that defines the order of packets from the receiver's perspective
  • Confirmation number, indicating the next expected packet sequence number
  • TCP control flags (SYN, ACK, FIN, RST, etc.), which govern connection establishment, data transmission, and termination
  • Window size, which indicates how much data the receiver can receive without acknowledgement
  • Checksum for error detection
  • Possible additional options or information in the TCP packet


Application Layer - HTTP Protocol

The last level refers to the application layer in the TCP/IP model. The application layer in Wireshark, especially concerning the HTTP protocol, displays information about HTTP request and response messages. Wireshark is capable of dissecting and displaying detailed information about HTTP messages, such as headers, URLs, and cookies.

hakatemia pro

Ready to become an ethical hacker?
Start today.

As a member of Hakatemia you get unlimited access to Hakatemia modules, exercises and tools, and you get access to the Hakatemia Discord channel where you can ask for help from both instructors and other Hakatemia members.