Sign inSign up

dmickels/pcap_player

By dmickels

Updated about 5 years ago

Play pcap files out on the wire.

Image
0

941

dmickels/pcap_player repository overview

PCAP Player

Have a pcap file you wish to re-transmit onto the wire? Here is a Python script and Docker image that help you do that.

How to use

  1. Install python packages via requirements.txt file: pip install -r requriements.txt
  2. Run pcap_player.py either taking the defaults or passing variable changes via CLI: ./pcap_player.py -h

The result will be to play the infile.pcap contents onto the network.

Docker how to use

  1. docker pull dmickels/pcap_player:latest
  2. docker run --rm --net=host -v "<path and filename to pcap>":"/app/infile.pcap" dmickels/pcap_player

Example

Let's say you have a PCAP file named "twinkie.pcap", and it is in the "/home/user/pcaps" directory. The command would then be: docker run --rm --net=host -v "/home/user/twinkie.pcap":"/app/infile.pcap" dmickels/pcap_player

Tag summary

Content type

Image

Digest

Size

329.7 MB

Last updated

about 5 years ago

docker pull dmickels/pcap_player