Skip to main content

A tool for deriving statistical features from pcap data.

Project description

PRC Flowmeter v0.2.4

Flowmeter is a Scapy-based tool for deriving statistical features from PCAPs for data analysis and machine learning. The features are based on the java application CICFlowmeter

Based heavily on this flowmeter app

Usage

A Flowmeter object is created with up to three parameters:

  • offline (str) - filename of a pcap file; if none provided, streams from available ports (requires run as admin in linux-based environments.)
  • outfunc (function) - a csv rendition of the metered flows will be sent to this function as they are created. If none provided, will default to print().
  • outfile (str) - filename to store csv flow output. If none is provided, results are not stored.

Building off of scapy Sessions, Flowmeter separates packet streams into distinct network communication 'flows', which are identified simply as communications between two endpoints (ip:port) on a given protocol within a period of time. From there it begins analyzing the flow data to derive features useful for plotting, traffic pattern analysis, and machine learning.

from flowmeter import Flowmeter

feature_gen = Flowmeter(
    offline = "input.pcap",
    outfunc = None,
    outfile = "output.csv")

feature_gen.run()

Contributions

If you would like to contribute feel free to fork the repo, clone the project, submit pull requests, open issues, or request features/enhancements.

License

PRCFlowmeter is currently licensed under the GNU GPLv2.

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

prc-flowmeter-0.2.4.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prc_flowmeter-0.2.4-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file prc-flowmeter-0.2.4.tar.gz.

File metadata

  • Download URL: prc-flowmeter-0.2.4.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for prc-flowmeter-0.2.4.tar.gz
Algorithm Hash digest
SHA256 9c1288d197556cf03039e6bc12d9208ff4ab1d3f5124a2557e8598205ff1199d
MD5 fd4aef45fd207d4e1f18a8a02a2907e7
BLAKE2b-256 badb1dd7180870eb21cc74a45eb6e8a4c3c9f0046eb84a9973395c828e55ab7e

See more details on using hashes here.

File details

Details for the file prc_flowmeter-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: prc_flowmeter-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for prc_flowmeter-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4667f20ccf7cad20f05e1d76f818a703c9067c86ef98c805d97e7e7ac1846936
MD5 ac12e4a326b6f7b4cf5eb698a990bc95
BLAKE2b-256 40ca3f161cb58c855a9e2c461c7cb0810f253e2129441f4aa35040a966bc938f

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