Giovanni S
Giovanni S

Reputation: 2110

Sending a UDP with scapy shows malformed in wireshark

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?

Upvotes: 1

Views: 2134

Answers (1)

Giovanni S
Giovanni S

Reputation: 2110

I figured this out by setting my source port to 50000

Upvotes: 1

Related Questions