How to send pcap packets to NIC?

I have a captured pcap network file and you want to send its packets to the NIC; Is it possible? Is there any application for this?

+4
source share
5 answers

You can use some kind of playback application like one (tcpreplay) .

+6
source

a bit twist can do this.

just install it and enter your package as follows:

# bittwist -i eth0 pcap-file.pcap 
+4
source

There is a libpcap / winpcap library that allows the programmer to send / receive packets and work directly with the NDIS level driver. http://www.winpcap.org

0
source

Yes, there is a way - sending a packet to the NIC means entering it into the interface.

You can do this with libnet packege on linux. I work too these days. Try Googling with this term, you will surely get some good stuff to share.

0
source

I am using tcpreplay on Linux / Freebsd, for example:

#tcpreplay -l 0 -i eth1 path-to-your-captured-file.pcap

-l loop how many times, 0 for infinite -i where you want to send a message

0
source

All Articles