Skip to content

cdelzotti/SNIff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SNIff

SNIff is a simple eBPF-based sniffer that goes trough both incomming and outgoing traffic to look for TLS SNI fields. Once a SNI is catched, the connection is tagged (based on the 4-tuple) and every following packets will be counted as traffic for the tagged domain.

How to Build

# Pull libbpf submodule
git submodule update --init --recursive
cd src/
cmake . -BBuild
cd Build
make

How to run

./sniff -i I -t T -o output.txt
  • I : the ifindex
  • T : the sampling interval (in seconds)

Example

./sniff -i 2 -t 10 -o output.txt

This will sniff traffic on interface 2 and print results each 10 seconds

About

A eBPF-based SNI sniffer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages