Created
July 16, 2021 18:41
-
-
Save iamramahibrah/0f49659c2f5e78410b3f2b8cf27f8827 to your computer and use it in GitHub Desktop.
pyshark pcap tcp file parsing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyshark | |
def cap(pkt): | |
capture = pyshark.FileCapture("Pcap file location here", dispaly_filter="tcp") | |
for i in capture: | |
print(i.tcp) | |
cap() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment