-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3684a80
commit 388140a
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
 | ||
|
||
# What kind of statistics do you collect? | ||
|
||
Everytime you run a Nexmon firmware build, we collect the following information: | ||
* A unique identifier based on a random number (e.g., 5O31UY9Z5IEX3O9KL680V5IHNASIE1SB) | ||
* The name, release, machine and processor of your build system (`uname -srmp`, e.g., `Linux 4.2.0-42-generic x86_64 x86_64`) | ||
* Git internal path to the built project (e.g., `patches/bcm4339/6_37_34_43/nexmon/`) | ||
* Git version (e.g., `2.2.1-55-g3684a80c-dirty`) | ||
* Git repository URL (e.g., `[email protected]:seemoo-lab/wisec2017_nexmon_jammer.git`) | ||
|
||
# Why do you collect statistics? | ||
|
||
Nexmon is mainly intended as a research project that we share with the community so that others can benefit from our tools. | ||
We want to collect statistics to figure out how often Nexmon is used in general and which platform and firmware version is the most popular. | ||
We also intent to share our findings in the future. | ||
|
||
# How do I disable the collection of statistics? | ||
|
||
If you have privacy concerns, we also offer to opt-out of the statistic collections. To this end, you simply have to create a `DISABLE_STATISTICS` file in your Nexmon root directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
STAT_WGET := $(shell command -v wget 2> /dev/null) | ||
STAT_CURL := $(shell command -v curl 2> /dev/null) | ||
ifneq ("$(wildcard $(NEXMON_ROOT)/.UUID)","") | ||
STAT_UUID := $(shell cat $(NEXMON_ROOT)/.UUID | base64) | ||
else | ||
STAT_UUID := $(shell cat /dev/urandom | LC_ALL=C tr -dc A-Z0-9 | head -c32 > $(NEXMON_ROOT)/.UUID && cat $(NEXMON_ROOT)/.UUID | base64) | ||
endif | ||
STAT_UNAME := $(shell uname -srmp | base64) | ||
STAT_PATH := $(shell git rev-parse --show-prefix | base64) | ||
ifeq ("$(STAT_PATH)","Cg==") | ||
STAT_PATH := $(shell cd .. && git rev-parse --show-prefix | base64) | ||
endif | ||
STAT_GIT_VERSION := $(shell git describe --abbrev=8 --dirty --always --tags | base64) | ||
STAT_GIT_REMOTE := $(shell git config --get remote.origin.url | base64) | ||
#STAT_URL := http://172.16.121.1:8888/statistics/ | ||
STAT_URL := https://nexmon.org/statistics/ | ||
STAT_DATA := "uuid=$(STAT_UUID)&uname=$(STAT_UNAME)&path=$(STAT_PATH)&version=$(STAT_GIT_VERSION)&remote=$(STAT_GIT_REMOTE)" | ||
|
||
statistics: FORCE | ||
ifdef STAT_WGET | ||
$(Q)$(STAT_WGET) --user-agent="Nexmon" --post-data=$(STAT_DATA) --quiet --background --delete-after --no-check-certificate $(STAT_URL) > /dev/null 2> /dev/null | ||
else | ||
ifdef STAT_CURL | ||
$(Q)$(STAT_CURL) -A "Nexmon" --data $(STAT_DATA) $(STAT_URL) > /dev/null 2> /dev/null & | ||
endif | ||
endif | ||
|
||
FORCE: |