Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. JVM
  3. tcpflow

tcpflow

GPL-3.0C++tcpflow-1.6.1

A TCP/IP packet demultiplexer that captures and reconstructs TCP connections into separate files for protocol analysis and forensics.

Visit WebsiteGitHubGitHub
1.8k stars243 forks0 contributors

What is tcpflow?

tcpflow is a command-line network analysis tool that captures TCP/IP traffic and reconstructs individual TCP connections into separate files. It solves the problem of analyzing network protocols by providing complete session data rather than isolated packets, making it invaluable for debugging, reverse engineering, and forensic investigations.

Target Audience

Network administrators, security researchers, digital forensics analysts, and developers who need to inspect TCP traffic for protocol analysis, malware investigation, or application debugging.

Value Proposition

Developers choose tcpflow over generic packet analyzers because it automatically reconstructs and organizes TCP streams into usable files, supports forensic metadata output, and specializes in HTTP content extraction—all through a lightweight, Unix-friendly tool.

Overview

TCP/IP packet demultiplexer. Download from:

Use Cases

Best For

  • Reconstructing HTTP sessions to analyze web traffic and extract downloaded files
  • Performing network forensics on captured packet dumps (e.g., from tcpdump)
  • Reverse engineering undocumented network protocols used by applications
  • Extracting malware delivered via drive-by downloads from network captures
  • Debugging TCP-based application protocols by inspecting complete data streams
  • Analyzing streaming media or messaging app traffic for research purposes

Not Ideal For

  • Real-time network monitoring with interactive GUI dashboards
  • Analyzing IP-fragmented packets or non-TCP protocols like UDP
  • Environments requiring minimal file output or integrated protocol decoders beyond HTTP

Pros & Cons

Pros

Accurate Flow Reconstruction

Reassembles TCP streams correctly despite retransmissions or out-of-order delivery, ensuring complete session data for analysis.

HTTP Content Extraction

Automatically interprets HTTP responses, extracts bodies, and decompresses GZIP content, making web traffic analysis straightforward.

Forensic Metadata Output

Generates DFXML reports with MD5 hashes and connection statistics, providing detailed forensic evidence for investigations.

Powerful Filtering

Supports libpcap filtering expressions identical to tcpdump, allowing precise control over captured traffic.

Cons

No IP Fragment Support

Explicitly cannot handle IP fragments, as admitted in the README, limiting effectiveness in networks where fragmentation occurs.

Complex Source Builds

Building from source requires OS-specific configuration scripts and manual steps, adding setup overhead compared to package managers.

File Management Overhead

Creates separate files for each TCP flow, which can become unwieldy with large captures and requires post-processing organization.

Frequently Asked Questions

Quick Stats

Stars1,766
Forks243
Contributors0
Open Issues70
Last commit4 months ago
CreatedSince 2012

Tags

#digital-forensics#traffic-analysis#libpcap#network-forensics#protocol-analysis#network-analysis#packet-capture#forensics

Built With

A
Autotools
l
libpcap
C
CMake
B
Boost
C
C++

Links & Resources

Website

Included in

Security14.2kPCAPTools3.4kJVM2.2k
Auto-fetched 1 day ago

Related Projects

okhttpokhttp

Square’s meticulous HTTP client for the JVM, Android, and GraalVM.

Stars46,967
Forks9,273
Last commit2 days ago
gorgor

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.

Stars19,281
Forks87
Last commit4 months ago
comcastcomcast

Simulating shitty network connections so you can build better systems.

Stars10,509
Forks378
Last commit1 year ago
AeronAeron

Efficient reliable UDP unicast, UDP multicast, and IPC message transport

Stars8,674
Forks1,046
Last commit3 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub