Skip to content

Instantly share code, notes, and snippets.

@iamramahibrah
Created July 16, 2021 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamramahibrah/0f49659c2f5e78410b3f2b8cf27f8827 to your computer and use it in GitHub Desktop.
Save iamramahibrah/0f49659c2f5e78410b3f2b8cf27f8827 to your computer and use it in GitHub Desktop.
pyshark pcap tcp file parsing
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