Adding Timestamps To Packet Payload with TCPREPLAY

后端 未结 2 436
孤独总比滥情好
孤独总比滥情好 2021-01-24 05:32

I have a pcap file to replay. I want to rewrite packet payload to include a timestamp. How can I do that with tcpreplay or tcprewrite? Is there a default option or should I impl

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-24 06:09

    That kind of editing isn't supported by tcpreplay/tcprewrite, so you'd have to write the code yourself. If you don't mind corrupting your packet data (which sounds like you're ok with) then it should be pretty easy by editing tcpedit.c.

提交回复
热议问题