diff options
| author | 姜萍 <[email protected]> | 2022-05-29 17:59:26 +0800 |
|---|---|---|
| committer | 姜萍 <[email protected]> | 2022-05-29 17:59:26 +0800 |
| commit | 9f0f12ed28357ae167cb9aab3a614da0f8cd4bab (patch) | |
| tree | 0eac2d3fbfc11e7639b9a0254a8c24d8a43bd8f2 /send.py | |
initmaster
Diffstat (limited to 'send.py')
| -rw-r--r-- | send.py | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,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 |
