Hi I would like to generate dummy packets of fixed size say 1400 bytes using python. After generation I would like to stream it over the network using UDP broadcast along with the sequence numbers for each packet. Is there any possible ways to do this.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Try using scapy.
A simple UDP packet can be sent using a simple 1-liner such as
send(IP(dst="192.168.0.255")/UDP(dport=0)/("X"*1400))