Impacket & dpkt sending features?

653 Views Asked by At

Is there any support for sending packets in impacket or dpkt libraries?

I was able to find examples of sniffing, interpreting and constructing packets using these libraries, but they don't seem to support sending over network interfaces.

Ping example of impacket library uses standard socket library in python to send the packet. Any help would be great. Thanks

1

There are 1 best solutions below

0
On

dpkt does not have any built-in way to send packets. Once you construct the packet, you will need to use a RAW socket to send out packets. Here is a good example, which shows you how to send a raw ICMP packet constructed using dpkt.