开发者

How to send pcap file packets on NIC? [duplicate]

This question already has answers here: Sending packets capt开发者_运维技巧ured with Wireshark [closed] (3 answers) Closed 2 years ago.

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?


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


bit-twist can do this.

just install it and inject your packet like this :

# bittwist -i eth0 pcap-file.pcap 


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜