My network has 2 interfaces
eth1 ethernet 192.168.1.1
eth2 wifi 10.42.0.1
I’m getting ~20 udp packets to the port 10000 each 1 sec with the eth1 interface and it sends to my wifi hotspot eth2.
I need to write programm with the help of scapy which asks
What’s the % of files which you need to modify. And if i set the value 50%
It means that i need to modify each second packet.
It needs to start capture packet N1 udp and copy only payload of it starting from 8th byte. I need to cut all payload besides first 7 bytes. And let the packet N1 arrive to my wifi @eth2.
When the second packet arrives N2 i need to change payload of it. I need to keep first 7bytes of data and add previous saved cuted payload from the packet N1. My eth2 interface should get that modified packet. Also i need to recalculate checksum and length in the header.
All this modification should be done realtime (latency is important) and when the udp packet gets modified the original one shouldn’t arrive to eth2 interface.
If i set 33% it will modify just each 3th packet and dont modify previous 2 ones
quickset is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.