packet-capture

How to Use Pyshark to Read a .pcapng file's content directly from memory instead of from disk?

How to Use Pyshark to Read a .pcapng file's content directly from memory instead of from disk? Question: I am using the file capture API of pyshark like this. #!/usr/bin/env python3 # encoding:utf-8 import pyshark as ps filename: str = ‘some_file.pcapng’ with ps.FileCapture(input_file=filename) as capture: print(capture[0].pretty_print()) But now, I have another use case where the …

Total answers: 1