Sending a UDP with scapy shows malformed in wireshark

Question:

If i try and send a UDP packet with python using scapy

from scapy.all import *
    data= "hello"
    a = IP(dst="192.168.192.145")/UDP(dport=1194)/Raw(load=data)
    send(a)
    a.show()

It shows as both malformed and as the DNS protocol in wireshark

Where am I going wrong?

Asked By: Giovanni S

||

Answers:

I figured this out by setting my source port to 50000

Answered By: Giovanni S
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.