summaryrefslogtreecommitdiff
path: root/send.py
blob: b1298e549a9798b123c8b700f52d08c967d65652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python

import os
import sys

from scapy.all import *


i=0
with PcapReader('/home/ucas/Desktop/C4/test-1.pcap') as pcap_reader:
        for pkt in pcap_reader:
		print(i)
		#print(pkt)
		print(repr(pkt))
		sendp(pkt)
		i=i+1