Skip to content

binarymaster/3WiFi

Folders and files

NameName
Last commit message
Last commit date
Sep 30, 2021
Jun 10, 2022
Jan 1, 2019
May 9, 2017
Sep 6, 2022
Apr 12, 2022
Nov 14, 2015
Jul 11, 2015
Jul 10, 2016
Oct 28, 2017
Jun 29, 2022
Jun 13, 2022
Sep 30, 2021
Mar 19, 2017
Jul 11, 2015
Jun 10, 2022
Jul 10, 2016
Jun 10, 2022
Sep 6, 2022
Nov 16, 2015
Oct 1, 2021
Feb 14, 2019
Jun 10, 2022
Sep 30, 2021
Jun 15, 2020
Jul 11, 2015
Jan 1, 2019
Sep 30, 2021
Mar 5, 2018
Jan 23, 2019
Sep 30, 2021
Sep 6, 2022
Sep 6, 2022
Sep 30, 2021
Oct 25, 2019
Jun 10, 2022
Jun 13, 2022
Dec 30, 2018
Jul 11, 2015
Mar 19, 2017
Sep 6, 2018
Oct 31, 2017
Jun 13, 2022
Apr 28, 2022
Apr 13, 2022
Sep 6, 2022
Jun 29, 2022
Jun 29, 2022
Jun 15, 2020
Jun 15, 2020
Dec 23, 2021
Jan 1, 2019
Mar 19, 2021
Sep 30, 2021

Repository files navigation

3WiFi Database

(c) 2015-2022 Anton Kokarev et al.

This project was created to collect data from Router Scan log reports, search for access points, obtain its geolocation coordinates, and display it on world map.

Prerequirements:

  1. Disable display of errors, warnings, and notices in php.ini
  2. Make sure your web server is set up to apply .htaccess policies per directory
  3. Make sure you have installed bcmath, curl, mysqli, and simplexml php extensions

Installation steps:

  1. Copy all required files to your /www directory
  2. Create database (execute 3wifi.sql to create tables)
  3. Copy config.php-distr to config.php
  4. Edit config.php (DB_SERV, DB_NAME, DB_USER, DB_PASS etc)
  5. (optional) Turn on memory tables (in the config.php define TRY_USE_MEMORY_TABLES as true)
  6. (optional) Use import.free.php once to import old format database
  7. Start all background daemons:
# Upload routine loads data into database
php -f 3wifid.php uploads
# Finalize routine prepares tasks for finalization
php -f 3wifid.php finalize
# Geolocate routine locates new added BSSIDs on map
php -f 3wifid.php geolocate
# Stats routine caches statistics (use only when stats caching enabled)
php -f 3wifid.php stats
# Memory table manager (use only with memory tables enabled)
php -f 3wifid.php memory

Database maintenance:

# Recheck not found BSSIDs in the database
php -f 3wifid.php recheck

Before running the daemons, make sure that php-cli interpreter is accessible from your directory.