Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Example Applications

We provide some simple examples to demonstrate how NFStream can be integrated within your Python application.

Setup your environment

python3 -m pip install --upgrade pip
virtualenv venv-py -p /usr/bin/python3
source venv-py/bin/activate
pip install --upgrade nfstream

flow_printer

usage: python3 flow_printer.py input

positional arguments:
  input                 input pcap file or network interface (root privileges required)

csv_generator

usage: python3 csv_generator.py input

positional arguments:
  input                 input pcap file or network interface (root privileges required)

Generated CSV will be stored in the same directory and named input.csv.

Live Capture Notes: For live interface capture, root privileges. Example:

sudo venv-py/bin/python3 flow_printer.py eth0

sudo venv-py/bin/python3 csv_generator.py eth0