I am trying to send a previously recorded traffic (captured in pcap format) with scapy. Currently I am stuck at striping original Ether layer. The traffic was captured on another host and I basically need to change both IP and Ether layer src and dst. I managed to replace IP layer and recalculate checksums, but Ether layer gives me trouble.
Anyone has experience resending packets from capture file with applied changes to IP and Ether layer(src and dst)? Also, the capture is rather big couple of Gb, how about scapy performance with such amounts of traffic?
scapy
is a nice tool, but do you have to do this withscapy
? There are other solutions that may be optimized for this... – Dalethtcpreplay
handle the requested capabilities of changing the source and destination addresses? I looked and was unable to find this feature, which is why I got to this page. – Smedleytcprewrite
with the Pseudo-NAT option (-S
for example) with0.0.0.0/0:<ip>/32
(if you wanted, say, to change all source addresses to<ip>
) to first convert the file, then usetcpreplay
to replay it. – Smedley