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

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


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

permanent link

answered 22 Sep '15, 08:12

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×7

question asked: 22 Sep '15, 06:49

question was seen: 1,306 times

last updated: 22 Sep '15, 08:12

p​o​w​e​r​e​d by O​S​Q​A