This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Confusing Data field when sending packet with Scapy

0

I'm using Python and Scapy to create socket, craft a packet and send it. How I create a packet:

ascapypacket=Ether()/IP(dst="192.168.138.129")/UDP(dport=777)

Thing is when I send the packet and capture it with Wireshark I see this: http://i.imgur.com/peU9gS2.png?1

UDP stuff ends with 9c and I don't understand what is this highlighted stuff, because I am not sending it explicitly. If I do hexdump of my full packet in Scapy, I get this exact data. So it just adds Hex representation of whole packet?

asked 22 Sep '15, 06:49

estranged's gravatar image

estranged
6113
accept rate: 0%

edited 22 Sep '15, 06:50


One Answer:

0

I don't understand what is this highlighted stuff,

it's the payload of the generated UDP packet, which happens to look like an IP frame itself. So I guess there is something wrong with your scapy script, as scapy does not use any payload by default.

Regards
Kurt

answered 22 Sep '15, 08:12

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%