Skip to content

Instantly share code, notes, and snippets.

@binkybear
Last active July 20, 2016 05:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save binkybear/81c2115053a61ceae42dc984eb0384cf to your computer and use it in GitHub Desktop.
Save binkybear/81c2115053a61ceae42dc984eb0384cf to your computer and use it in GitHub Desktop.
nttopng in Nethunter
#
# All this should be done in Nethunter chroot
#
apt-get install -y subversion libglib2.0 libxml2-dev libpcap-dev libtool rrdtool librrd-dev autoconf automake autogen redis-server wget libsqlite3-dev libhiredis-dev libgeoip-dev libcurl4-openssl-dev libpango1.0-dev libcairo2-dev
apt-get install -y libpng12-dev git dh-autoreconf libcurl4-gnutls-dev libsqlite3-dev libmysqlclient-dev pkg-config libxml2-dev libglib2.0-dev
# Modify /etc/group by adding redis to inet group
nano /etc/group
# inet:x:3004:postgres,root,beef-xss,daemon,nginx,mysql,redis
service redis-server start
cd /tmp
git clone https://github.com/ntop/ntopng.git
git clone https://github.com/ntop/nDPI.git
cd nDPI
./autogen.sh
make
cd ../ntopng
./autogen.sh
./configure
make geoip
make
# Change m to local subnet or don't include
sudo su
./ntopng -i wlan0 -m 192.168.1.0/24
# Open browser to http://127.0.0.1:3000
# Login: admin
# Password: admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment