0

I try to send a UDP packet via scapy, but when I try to send something a bit big (e.g 1800 chars of Raw load) it doesn't send it at all.

def send_info(info):
    msg = IP(dst=MANAGER_IP) / UDP(dport = MANAGER_PORT) / \
    Raw(load = ("AAAAAAAAAAAA" + info)) #for some reason it throws out the first 12 charaters
    print("Sending...")
    send(msg, verbose=False)
    print("Sent!")
Adi Ostrov
  • 133
  • 5

1 Answers1

0

The maximum UDP packet size is around 1500 bytes on many systems and networks, even less on the public internet.

See What is the largest Safe UDP Packet Size on the Internet

John Zwinck
  • 239,568
  • 38
  • 324
  • 436