Installation

If available, please prefer the package shipped by your linux distribution.

Archlinux

$ pacman -S sn0int

Mac OSX

$ brew install sn0int

Debian testing/Debian sid/Kali

Note that debian doesn’t ship the geoip2-database so we’re going to download them automatically during the first run.

$ apt install build-essential cargo libsqlite3-dev libseccomp-dev publicsuffix
$ git clone https://github.com/kpcyrd/sn0int.git
$ cd sn0int
$ cargo install -f --path .

Ubuntu/Debian stable

cargo in the repos is too old and the build is going to fail. You should either install the most recent rust version with rustup or use the docker instructions instead.

$ apt install build-essential libsqlite3-dev libseccomp-dev publicsuffix
$ git clone https://github.com/kpcyrd/sn0int.git
$ cd sn0int
$ cargo install -f --path .

Docker

$ docker run --rm --init -it -v $PWD/.cache:/cache -v $PWD/.data:/data kpcyrd/sn0int

Alpine

$ apk add --no-cache sqlite-dev libseccomp-dev cargo
$ git clone https://github.com/kpcyrd/sn0int.git
$ cd sn0int
$ cargo install -f --path .

OpenBSD

$ pkg_add sqlite3
$ git clone https://github.com/kpcyrd/sn0int.git
$ cd sn0int
$ cargo install -f --path .

Windows

This is not recommended and only passively maintained. Please prefer linux in a virtual machine if needed.

$ git clone https://github.com/kpcyrd/sn0int.git
$ cd sn0int
$ curl -fsS --retry 3 --retry-connrefused -o sqlite3.zip https://sqlite.org/2017/sqlite-dll-win64-x64-3160200.zip
$ 7z e sqlite3.zip -y
$ "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\lib.exe" /def:sqlite3.def /OUT:sqlite3.lib /machine:x64
$ export SQLITE3_LIB_DIR="$TRAVIS_BUILD_DIR"
$ cargo install -f --path .