Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Repo of code for FP-Scanner article

License

NotificationsYou must be signed in to change notification settings

Spirals-Team/FP-Scanner

Repository files navigation

Repository containing the code of FP-Scanner's paper.

Run the command below to create a virtual environment.

virtualenv --python=/usr/bin/python3myvenv

Then activate the virtual environment.

.myvenv/bin/activate

Finally, install the dependencies.

pipinstall -rrequirements.txt

Import database

Our prototype relies on MongoDB to store the fingerprints, thus you need to ensure that MongoDB is running.

Run the command below to import the database.

mongoimport --dbusenix18 --collectionfingerprint --filefingerprints.json

Scan fingerprints

First, we analyze the fingerprints present in the database.

pythonmain.py

It logs information on the screen about the results of the analysis and generates two csv result files in theresults folder:

  • res_prediction.csv that contains information on the tests that passed or not for each fingerprint;
  • res_real_values.csv that contains information on the OS and browser predicted for each fingerprint.

Then we analyse these files to obtain the accuracy of FP-Scanner, FingerprintJS2 and Augur.

pythonmain.pyanalyse

Benchmark

To run the benchmark that measures the execution time of the scanner, run the command below.

pythonmain.pybench

It generates three filesbench_situation1.csv,bench_situation2.csv andbench_situation3.csv that corresponds tothe three cases presented in the article:

  1. Run all scanner tests even when an inconsistency is detected;
  2. Stop running tests when an inconsistency is detected;
  3. Run only analysis of the pixels.

These files contain a single column calledelapsed_time, which represent the execution timeneeded to run the set of tests.

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp