Aller au contenu
uencoder

Construire and inspect network packets

Construct raw network packets pour testing, debugging, et protocol development. Understand Ethernet, IP, et transport layer encapsulation.

  1. 1

    A network packet is built by encapsulation: application data → transport header (TCP/UDP) → IP header → Ethernet header. Each layer adds its header. The Ethernet header (14 bytes) contains destination MAC, source MAC, and EtherType (0x0800 for IPv4, 0x86DD for IPv6).

  2. 2
    Encodeur hexadécimal →

    Coder the packet fields as hex. Build the Ethernet header (dst MAC + src MAC + EtherType), then IP header (version, IHL, TTL, protocol, IPs), then transport header (ports, seq, flags). Concatenate the layers to form the raw packet.

  3. 3
    Encodeur binaire →

    Coder specific fields in binary for bit-level control. The IP flags (Reserved, DF, MF) are 3 bits. The TCP flags (FIN, SYN, RST, PSH, ACK, URG) are 6 bits. Binary encoding gives precise control over individual flags.

Questions fréquentes

What is encapsulation?
Each layer wraps the layer above it. The application data is wrapped in a TCP segment (TCP header + data), which is wrapped in an IP packet (IP header + TCP segment), which is wrapped in an Ethernet frame (Ethernet header + IP packet + FCS). Each layer is independent.
Why build raw packets?
For network testing (verify protocol implementations), security research (craft specific flag combinations), debugging (reproduce issues with specific packet patterns), and learning (understand protocols at the byte level). Tools like Scapy (Python) and hping3 are used for this.

Workflows résolvant cette tâche

Convertir Base32 en Hex
Décoder Base32 et recoder en Hex pour le débogage.
PIPELINE
Convertir Base64 en Hex
Décoder une chaîne Base64 en bytes et la recoder en Hex pour inspection ou interopérabilité.
PIPELINE
Convertir Binary en Hex
Décoder une chaîne Binary (base-2) en sa valeur d'octet et recoder en Hex.
PIPELINE
ChaCha20 chiffrer puis Hex
Chiffrer avec ChaCha20 puis coder en Hex le texte chiffré.
PIPELINE
Coder en Hex puis décoder pour vérifier l'aller-retour
Coder le texte en Hex et le décoder pour vérifier que l'aller-retour préserve les données originales.
PIPELINE
Coder le texte en Hex et analyser
Convertir le texte en représentation Hex puis calculer les statistiques de caractères sur la sortie Hex.
PIPELINE
Convertir Multibase en Hex
Décoder multibase et recoder en Hex simple.
PIPELINE
Convertir Octal en Binary
Décoder un nombre octal (base-8) en sa valeur numérique et recoder en chaîne Binary.
PIPELINE
Convertir Octal en Hex
Décoder octal et recoder en Hex pour une représentation compacte.
PIPELINE
Inverser le texte et afficher le codage Hex
Inverser un chaîne puis inspecter son représentation hexadécimale — useful pour débogage problèmes d’ordre des octets et énigmes de codage.
PIPELINE
Hacher SHA-512 puis Hex
Calculer le hash SHA-512 puis coder en Hex pour lisibilité.
PIPELINE
Decoder URL et afficher les bytes Hex
Percent-decoder une chaine codee URL puis voir sa representation en bytes Hex pour analyse de bas niveau.
PIPELINE
Coder une charge utile texte pour transport URL
Percent-coder le texte puis afficher sa representation Hex pour un transport sur par parametre URL.
PIPELINE
XXencode puis Hex
Coder le texte en XXencode puis coder en Hex le resultat.
PIPELINE

Outils associés