'Scapy send packets speed up in Windows

In Windows I need to send an NBNS name query packet (which uses UDP protocol), and I need to send 255 packets and get an answer for each. With Scapy it takes a year, so I wanted to know if there is a way to speed it up or maybe use sockets instead?



Solution 1:[1]

You could use two threads, one that is sending packets using a conf.L3socket() socket from scapy and another thread that is receiving packets using sniff().

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sch8ill _