Pcap Inspection

circle-info

A note about PCAP vs PCAPNG: there are two versions of the PCAP file format; PCAPNG is newer and not supported by all tools. You may need to convert a file from PCAPNG to PCAP using Wireshark or another compatible tool, in order to work with it in some other tools.

Online tools for pcaps

Extract Information

The following tools are useful to extract statistic, files...

Wireshark

circle-info

If you are going to analyze a PCAP you basically must to know how to use Wireshark

You can find some Wireshark trick in:

Wireshark trickschevron-right

Xplico Framework

Xplico can analyze a pcap and extract information from it. For example, from a pcap file Xplico extracts each email (POP, IMAP, and SMTP protocols), all HTTP contents, each VoIP call (SIP), FTP, TFTP, and so on.

Install

Run

Access to 127.0.0.1:9876 with credentials xplico:xplico

Then create a new case, create a new session inside the case and upload the pcap file.

NetworkMiner

Like Xplico it is a tool to analyze and extract objects from pcaps. It has a free edition that you can download herearrow-up-right.

  • Extracting and encoding usernames and passwords (HTTP, FTP, Telnet, IMAP, SMTP...)

  • Extract authentication hashes and crack them using Hashcat (Kerberos, NTLM, CRAM-MD5, HTTP-Digest...)

  • Build visual network diagram (Network nodes & users)

  • Extract DNS queries

  • Reconstruct all TCP & UDP Sessions

  • File Carving

Capinfos

Ngrep

If you are looking for something inside the pcap you can use ngrep. And example using the main filters:

Carving

Using common carving techniques can be useful to extract files and information from the pcap:

File/Data Carving & Recovery Toolschevron-right

Check Exploits/Malware

Suricata

Install and setup

Check pcap

YaraPcap

****YaraPCAParrow-up-right is a tool that

  • Reads a PCAP File and Extracts Http Streams.

  • gzip deflates any compressed streams

  • Scans every file with yara

  • writes a report.txt

  • optionally saves matching files to a Dir

Malware Analysis

Check if you can find any fingerprint of a known malware:

Malware Analysischevron-right

Other pcap analysis tricks

DNSCat pcap analysischevron-rightUSB Keyboard pcap analysischevron-rightWifi Pcap Analysischevron-right

Last updated