Giter Club home page Giter Club logo

fp-demo's Introduction


What's this?

This is a server-client app that shows your digital browser fingerprint and stores it, so it can be compared with others users browser fingerprint.

The project has the following components:

  • Front end website: Gets all information about the user as possible without any dialog, makes a fingerprint and send that information to the backend
  • Backend:
    • Nodejs: Ensures that the format is correct and stores the data into an elasticsearch database
    • Elasticsearch: Is our database choice
    • Kibana: Provides a front-end to see statistics and queries.

All these components run in it's docker container and we need a nginx proxy because kibana don't support authentication and we don't want to expose the statistics dashboard to the mases.


Running the thing

  # [optional]You can use your own version of the fp-demo if you build it like this
  docker build fp-demo -t diegoreico/fp-demo
  
  # Then just us docker-compose to create all the containers
  docker-compose up -d

Uninstall

 docker-compose down

Using the thing

Front-end

You should access to the front-end in the following url:

http://localhost:1337/node/

The front-end is not so pretty but it should provide you some info about your browser:

dashboard

The URL is:

http://localhost:1337/kibana/

Default password is admin and user is admin

Change by doing:

htcpasswd -c passwd <username>

Overwrite the file before creating the containers

Panel example image


About

The Schema

The schema of the database is defined in NodeJS using node-schema-object that lets us ensure that users cannot insert random objects to the database

The insertion

We'll use the node elasticsearch connector to help us insert the data into the database.


Todo

  1. Delete all of the "trangalladas"
  2. Using docker-compose to truly orchestate the thing:
  • fpdemo_node has a slep in order to wait for elasticsearch

Helpful commands

# Delete dead
docker rm $(docker ps --all -q -f status=dead)
# When a container mountpoint dies
sudo umount /var/lib/docker/devicemapper/mnt/9769dbe9e21d2aba6d2b08e79e3a67534ff8d69b66a93ae554a519cdc9ea7027
rm /etc/nginx/conf.d/default.conf && nano /etc/nginx/conf.d/default.conf
# Delete and re-run containters
docker-compose down && docker-compose up -d --force-recreate
# Reset nginx
apt-get update && apt-get install -y procps
killall nginx && sleep 1 && nginx

fp-demo's People

Contributors

diegoreico avatar snooze6 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.