summaryrefslogtreecommitdiff
path: root/send.py
diff options
context:
space:
mode:
Diffstat (limited to 'send.py')
-rw-r--r--send.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/send.py b/send.py
new file mode 100644
index 0000000..b1298e5
--- /dev/null
+++ b/send.py
@@ -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