> For the complete documentation index, see [llms.txt](https://notes.m4lwhere.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.m4lwhere.org/programming/python/scapy/reading-pcap.md).

# Reading PCAP

Scapy can read pcap files as well!

```python
packets=rdpcap("capture.pcap")

# Open wireshark directly from scapy
wireshark(packet[0])

```
