Analyzer for PCAP files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
maride 1217153e78 Add file manager, storing extracted files 6 months ago
analyze Add statistics about how many packets were processed 6 months ago
common Replace ASCII tree drawing with Unicode symbols 7 months ago
output Add file manager, storing extracted files 6 months ago
protocol Add file manager, storing extracted files 6 months ago
.drone.yml indentation 7 months ago
.gitignore Add .gitignore 7 months ago added myself (emile) to the users list 7 months ago
LICENSE Add License 7 months ago added a benchmark section to the readme 7 months ago
analyzer_test.go basic testcase for the analyzer 7 months ago
file.go Move code out of src/ folder to comply to Golang standards (although it looks dirty) 7 months ago
go.mod go mod init 7 months ago
go.sum go mod init 7 months ago
main.go Add file manager, storing extracted files 6 months ago



If you get access to a PCAP file, for example during a CTF or captured on your own, you usually have the problem of overlooking all the relevant information to get a basic idea of the capture file. This gets worse if the capture file includes lots of white noise or irrelevant traffic - often included in the capture file to cloak interesting packets in a bunch of packets to YouTube, Reddit, Twitter and others.

pancap addresses this problem. With multiple submodules, it analyzes the given PCAP file and extracts useful information out of it. In many cases, this saves you a lot of time and can point you into the right direction.


Simply run

go get

This will also build pancap and place it into your GOBIN directory - means you can directly execute it!

In any use case, you need to specify the file you want to analyze, simply handed over to pancap with the -file flag.

Example usage:

pancap -file ~/Schreibtisch/mitschnitt.pcapng

This will give you a result similar to this:



Parsing an nGB big pcap takes y seconds:

nGB y seconds
2 30


... yes please! There are still a lot of modules missing. If you are brave enough, you can even implement another Link Type. Pancap currently only supports Ethernet (which, to be honest, fits most cases well), but USB might be interesting, too. Especially sniffed keyboard and mouse packets are hard to analyze by hand...