Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| network_stuff:tcpdump [2023/03/09 16:47] – jotasandoku | network_stuff:tcpdump [2023/11/02 14:38] (current) – external edit 127.0.0.1 |
|---|
| **LIBCAP RELATED UTILITIES** | **LIBCAP RELATED UTILITIES** |
| \\ | \\ |
| tcprewrite -C --dlt=enet --enet-smac=3a:85:a1:b3:c3:84 --enet-dmac=c2:54:cb:f2:ee:c8 -i sflow_2022_new.pcap -o rwsflow_2022_new.pcap # this is needed when the pcap we received is linux cooked (sometimes they miss the dst mac address so we add a dummy one | tcprewrite -C --dlt=enet --enet-smac=3a:85:a1:b3:c3:84 --enet-dmac=c2:54:cb:f2:ee:c8 -i sflow_2022_new.pcap -o rwsflow_2022_new.pcap # this is needed when the pcap we received is linux cooked (sometimes they miss the dst mac address so we add a dummy one |
| tcprewrite -C --dstipmap=192.168.97.255/32:10.100.10.142/32 -i rwsflow_2022_new.pcap -o rwrwsflow_2022_new.pcap | tcprewrite -C --dstipmap=192.168.97.255/32:10.100.10.142/32 -i rwsflow_2022_new.pcap -o rwrwsflow_2022_new.pcap |
| tcpreplay -i eth0 --loop 0 xxx.pcap | tcpreplay -i eth0 --loop 0 xxx.pcap |
| [[https://gist.github.com/niranjan-nagaraju/4532037]] | [[https://gist.github.com/niranjan-nagaraju/4532037]] |