Parte 1

Installation

Install Yaf

sudo apt update
sudo apt install gcc -y
sudo apt install libglib2.0-dev -y

wget https://tools.netsa.cert.org/releases/libfixbuf-2.1.0.tar.gz
tar -xzvf libfixbuf-2.1.0.tar.gz
cd libfixbuf-2.1.0/
./configure
sudo make
sudo make install
cd

sudo apt install libpcap-dev -y

wget https://tools.netsa.cert.org/releases/yaf-2.10.0.tar.gz
tar -xzvf yaf-2.10.0.tar.gz
cd yaf-2.10.0/
./configure
sudo make
sudo make install
cd

sudo ldconfig

Capture 1

wget https://wwwhome.cs.utwente.nl/~schmidtr/docs/capture.pcap

Choose two files Here.

Install php

sudo apt install php

Run Script

php script.php mycapture.pcap active_time idle_time

Exemplo

php script.php capture.pcap 120 60