Skip to content

naiksrinu/smartpcapreplay_v1.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smartpcapreplay

Replay the PCAPS with Sessions from same host.

smartpcapreplay.py --- Main file to replay the given PCAP in Sessions as per your setup

ip2f.py --- Supportive function to identify the sessions and filter the IP's from the pcap, this file creates an log file having list of Session based IP's.

help --- This document gives the glance to prepare your setup

Detail Test Bed:

		|----------|		     
	--------|  Target  |-------|       
	|     E0|----------|E1	   |        
  	|       		   |        
	|	                   |         
  	|       |----------|	   |         
  	|-------|  Linux   |-------|         
              E0|----------|E1		     

Target IP's: Eth0: 10.10.10.1/24 Eth1: 20.20.20.1/24

Linux IP's: Eth0: 10.10.10.2/24 Eth1: 20.20.20.2/24

How to Run: naik@sec$ sudo python ip2f.py tcppacket_2gb.pcap

Will identify all sessions and filter IP lists

naik@sec$ sudo python smartpcapreplay.py -p tcppacket_2gb.pcap -i 00:22:xx:xx:xx:xx
-o 01:12:yy:yy:yy:yy -c 10.10.10.2 -s 20.20.20.2 #Will replay the packets by modifying SRC IP and DST IP as per the current setup.

About

Replay the PCAPS with Sessions using Single Machine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages