We provide some simple examples to demonstrate how NFStream can be integrated within your Python application.
python3 -m pip install --upgrade pip
virtualenv venv-py -p /usr/bin/python3
source venv-py/bin/activate
pip install --upgrade nfstream
usage: python3 flow_printer.py input
positional arguments:
input input pcap file or network interface (root privileges required)
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