Skip to content

Commit 44bccfa

Browse files
authored
Added pcap file read implementation
1 parent 885566a commit 44bccfa

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎mapping/app1/intro.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from scapy.all import *
2+
3+
# rdpcap comes from scapy and loads in our pcap file
4+
packets = rdpcap('smtp.pcap')
5+
6+
# Let's iterate through every packet
7+
#for packet in packets:
8+
# print(packet)
9+
packets.summary()

‎mapping/app1/smtp.pcap‎

27.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)