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?
相关问题
- Code to analyze pcap file
- Socket.io Extra Placeholder Frame being sent
- Sending the array of arbitrary length through a so
- Passing a string to a C library from OCaml using C
- In Perl, how can I check for the existence of Sock
相关文章
- boost:asio IPv4 address and UDP comms
- Twisted XmlStream: How to connect to events?
- maxevents parameter in epoll_wait() and the events
- Difference between Internal IP Address and Externa
- Get all IPs in the same network as my computer
- udp packet loss and recovery
- perform connect() on specific network adapter
- c++ Hole punching UDP(RTP)
bit-twist can do this.
just install it and inject your packet like this :
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
There is a libpcap/winpcap library, that allows the programmer to send/receive packets and work directly with NDIS-level driver. http://www.winpcap.org
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.
You should be able to use some kind of replay application like this one (tcpreplay).