Search code examples
linuxnetwork-programmingwiresharkpacketpcap

I want to know how to send packets from pcap file in Linux


In Windows OS, there is a program called "Packet Builder" by ColaSoft. This program has a function to retrieve and retransmit packets captured in Wireshark. I am trying to do the same in Kali Linux. How can I do this?


Solution

  • low-level: using a bog-normal socket, probably of AF_PACKET protocol family to allow you to transmit arbitrary content.

    high-level: tcpreplay is what I used to do before.