Scapy没有发送大的UDP包

2024-03-29 06:48:42 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图通过scapy发送一个UDP包,但是当我试图发送一个有点大的东西(例如1800个字符的原始负载),它根本就不发送它。在

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!")

Tags: ipinfosendrawportdefmanagerload