Skip to content

Turn a PCAP file into a Python3 script to replay application data

Notifications You must be signed in to change notification settings

gglessner/pcap2python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pcap2python

Turn a PCAP file into a Python3 script to replay application data

Similar to TCP replay; however, this code generates a standalone python script to replay application data. This script supports replaying of multiple TCP connections.
This script assumes that the client sends data first and the server responds to each message sent by the client. If this is not your client-server communication model, this probably won't be useful.

Example:

	./pcap2py.py -f ./my_pcap_file.pcapng -s 1.1.1.1 -d 1.1.1.2 -p 1234 > output_script.py
	chmod +x ./output_script.py

About

Turn a PCAP file into a Python3 script to replay application data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages