Capturing network traffic is important for troubleshooting, analysis, and software and communications protocol development. For the security-minded individual, monitoring network traffic is crucial for detecting malicious activity or policy violation. In this recipe, we will demonstrate how to capture and inspect network traffic.
Capturing network traffic
Getting ready
In preparation for this recipe, observe the following steps:
- Install pyshark:
pip install pyshark
- Install wireshark. The latest version can be found at https://www.wireshark.org/download.html.