pyshark

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

Using Tshark in compiled python exe

Using Tshark in compiled python exe Question: I have a working python script, which uses and imports pyshark, and therefore tshark. As long as I run the code via pycharm, everything is fine. As soon as I use pyinstaller to compile, I get this error: Exception in Tkinter callback Traceback (most recent call last): File …

Total answers: 3