Skip to main content

A flow parsing/dumping utility

Project description

FlowParser is a C Python extenson for reconstructing and dumping IP flows from either a packet trace or a live capture. It works by sniffing traffic and keeping track of active flows. Each flow also has the headers (network and transport layer) of its packets stored. The flow and its packet headers are made available either on demand or when the flow terminates.

Use Cases

What could you possibly use another packet sniffer for?

  • Active monitoring of flows in / out of your machine / network. Ever wondered what flows are currently active and how much bandwidth they are using? FlowParser is an easy-to-use lightweight way of finding out.

  • Looking for anomalies in header fields. FlowParser will let you spot and record flows that for example have strange variation in TTL.

  • Quick offline data parsing. If you are looking for a specific flow or you want to study the behavior of a class of flows in a multi-GB packet trace FlowParser can help you accomplish the task quickly and easily.

And lots more. In general the idea is that reconstructing a flow and looking at the header fields of its packets should be as quick and painless as a couple of lines of Python.

Simple Example

This simple snippet will start listening to the en0 interface and every ten seconds will print the five-tuple id of flows that go faster than 1KB per second:

import fparser
import time

fp = fparser.FParser('en0')

while True:
      time.sleep(10)
      for flow in fp.flow_iter():
          if flow.get_info().Bps > 1000:
             print flow.get_id()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FlowParser-0.1.10.tar.gz (33.3 kB view details)

Uploaded Source

File details

Details for the file FlowParser-0.1.10.tar.gz.

File metadata

  • Download URL: FlowParser-0.1.10.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for FlowParser-0.1.10.tar.gz
Algorithm Hash digest
SHA256 82ee07d49f5d4a9fe9453a51b90082087f5a572a9aa5258fa721d7ef0020b565
MD5 cbce4e77fc3cea646ea66ca185c66ff6
BLAKE2b-256 04a6453c18d85fe72c7d6f5ff943e88e5efa73d350e2f1d9c5d55112e476b751

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page