6

I have some network traffic captured pcap file and want to send its packets on NIC; is it possible? Is there any application to do this?

salman
  • 1,966
  • 3
  • 15
  • 18

4 Answers4

6

You should be able to use some kind of replay application like tcpreplay.

Jaime Hablutzel
  • 6,117
  • 5
  • 40
  • 57
Mark Wilkins
  • 40,729
  • 5
  • 57
  • 110
4

bit-twist can do this.

just install it and inject your packet like this :

# bittwist -i eth0 pcap-file.pcap 
Zskdan
  • 799
  • 8
  • 17
0

I use tcpreplay on Linux/Freebsd eg:

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

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

Alvin Ch
  • 1
  • 1
0

Yes there is a way - sending a packet to NIC means injecting it to an interface.

You can do this with the help of libnet packege in linux. I myself am working on the same these days. Try Googling with this term, you'll surely get some good stuff to share.

Mxyk
  • 10,678
  • 16
  • 57
  • 76
Anand
  • 3
  • 3