Skip to content
No description, website, or topics provided.
PHP Shell Python CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


live web:

For this project you will also need Graphite and Carbon (


Setup WEB server on ubutnu:

sudo apt-get install apache2
sudo apt-get install php
sudo apt-get install mysql-server
sudo apt-get install php-mysqlnd php-curl

With sudo nano /etc/apache2/sites-available/000-default.conf replace /var/www/html with /var/www

Now download this code to your www folder.

cd /var/www
sudo git clone

Now you need to prepare sql dabase and table.

sudo mysql -u root
mysql> CREATE DATABASE hacklabos;
mysql> GRANT ALL PRIVILEGES ON hacklabos.* TO 'hacklabos'@'localhost' IDENTIFIED BY 'rU8toorqFmjeVwLIgnW7';
mysql> USE hacklabos;
mysql> source /var/www/WiFi-Visitors-Statistic-WEB/hacklabos.sql;

Now you shall be able to see the page but without graphs.

Adding Administrator for admin page

example: username: hacklabos password: labpass

username is plain text, example: hacklabos pasword is md5 hashed, example: md5(labpass) -> djniu32rzfh23iuhui5hrhf23

Inserting example into MySQL database.

mysql>  INSERT INTO login_data VALUES (1, 'hacklabos', 'djniu32rzfh23iuhui5hrhf23');

Setup Graphite and Carbon TODO: This need to fix, it is broken.

I can't install graphite to Ubuntu 18.04 I have some problems. So this need to be done.

With Graphite, you don't need to take care of saving data into the database and to take care of data. You just need to send it to Carbon and read it with Graphite.

It should go something like this:

Do instructions:

cd /opt/
sudo mkdir tmp
cd tmp
sudo git clone
sudo git clone
sudo git clone
sudo git clone

cd graphite-web/
sudo python install
cd ..
cd carbon/
sudo python install
cd ..
cd ceres/
sudo python install
cd whisper/
cd ../..
sudo rm -rf tmp
sudo cp /opt/graphite/examples/init.d/* /etc/init.d/
sudo chmod 775 /etc/init.d/carbon-*
sudo cp /opt/graphite/examples/example-graphite-vhost.conf /etc/apache2/sites-available/apache2-graphite.conf

Inside /etc/apache2/sites-available/apache2-graphite.conf change <VirtualHost *:80> to /<VirtualHost *:81> and also WSGISocketPrefix run/wsgi to WSGISocketPrefix /var/run/apache2/wsgi.

And add port Listen 81 to together with Listen 80 with

sudo nano /etc/apache2/ports.conf

Listen 80
Listen 81

Run following commands to install proper lib for apache to run graphite. And then reload all configs.

sudo apt-get install libapache2-mod-wsgi
sudo a2ensite apache2-graphite
systemctl reload apache2

Set carbon to run after system reboot. Replace CARBON_CACHE_ENABLED=false with CARBON_CACHE_ENABLED=true

Setup config files

sudo cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi
sudo cp /opt/graphite/conf/relay-rules.conf.example /opt/graphite/conf/relay-rules.conf
sudo cp /opt/graphite/conf/storage-aggregation.conf.example /opt/graphite/conf/storage-aggregation.conf
sudo cp /opt/graphite/conf/storage-schemas.conf.example /opt/graphite/conf/storage-schemas.conf
sudo cp /opt/graphite/conf/carbon.conf.example /opt/graphite/conf/carbon.conf
sudo nano /etc/default/graphite-carbon
You can’t perform that action at this time.