Browse Source

Set TZ to UTC to obscure user's true timezone. Fixes #1.

master
Chris McCormick 8 years ago
parent
commit
e7919770a8
3 changed files with 5 additions and 2 deletions
  1. 2
    1
      README.md
  2. 1
    0
      config
  3. 2
    1
      gitnonymous

+ 2
- 1
README.md View File

30
 	export GIT_COMMITTER_EMAIL="protect-all-babies@anonymous-mail-provider.com"
30
 	export GIT_COMMITTER_EMAIL="protect-all-babies@anonymous-mail-provider.com"
31
 	export GIT_AUTHOR_NAME="Baby Protector"
31
 	export GIT_AUTHOR_NAME="Baby Protector"
32
 	export GIT_AUTHOR_EMAIL="protect-all-babies@anonymous-mail-provider.com"
32
 	export GIT_AUTHOR_EMAIL="protect-all-babies@anonymous-mail-provider.com"
33
+	export TZ=UTC
33
 
34
 
34
 ## Use ##
35
 ## Use ##
35
 
36
 
48
  * Sets the `GIT_COMMITTER` and `GIT_AUTHOR` environment variables.
49
  * Sets the `GIT_COMMITTER` and `GIT_AUTHOR` environment variables.
49
  * Sets the `GIT_SSH` environment variable to point at a configured `git-ssh-wrap` script.
50
  * Sets the `GIT_SSH` environment variable to point at a configured `git-ssh-wrap` script.
50
  * Sets the `GIT_PROXY_COMMAND` environment variable to proxy network requests through tor.
51
  * Sets the `GIT_PROXY_COMMAND` environment variable to proxy network requests through tor.
52
+ * Sets the `TZ` environment variable to `UTC` in order to obscure your real timezone.
51
 
53
 
52
 Your prompt will be updated to reflect the configured environment:
54
 Your prompt will be updated to reflect the configured environment:
53
 
55
 
64
 
66
 
65
 Whilst this will help you adopt a pseudonymous virtual identity, you should be aware of the following information leaks that may still be used to try to identify you, pointed out by @ryancdotorg on Hacker News:
67
 Whilst this will help you adopt a pseudonymous virtual identity, you should be aware of the following information leaks that may still be used to try to identify you, pointed out by @ryancdotorg on Hacker News:
66
 
68
 
67
- * Your timezone will appear in Git commits (narrows down location).
68
  * Commit times will be leaked (narrows down sleeping/working hours).
69
  * Commit times will be leaked (narrows down sleeping/working hours).
69
  * SSH client version will be leaked to servers you connect to (shows Linux distro version and patch level).
70
  * SSH client version will be leaked to servers you connect to (shows Linux distro version and patch level).
70
 
71
 

+ 1
- 0
config View File

4
 export GIT_COMMITTER_EMAIL="your.email@your-anonymous-provider.com"
4
 export GIT_COMMITTER_EMAIL="your.email@your-anonymous-provider.com"
5
 export GIT_AUTHOR_NAME="YOUR NAME"
5
 export GIT_AUTHOR_NAME="YOUR NAME"
6
 export GIT_AUTHOR_EMAIL="your.email@your-anonymous-provider.com"
6
 export GIT_AUTHOR_EMAIL="your.email@your-anonymous-provider.com"
7
+export TZ=UTC # obscure real timezone by setting to UTC

+ 2
- 1
gitnonymous View File

68
       unset GIT_SSH
68
       unset GIT_SSH
69
       unset GIT_PROXY_COMMAND
69
       unset GIT_PROXY_COMMAND
70
       unset ALL_PROXY
70
       unset ALL_PROXY
71
+      unset TZ
71
       # restore any GIT_ environment variables set before
72
       # restore any GIT_ environment variables set before
72
       . "${oldenvfile}"
73
       . "${oldenvfile}"
73
       # unset our environment variables we set
74
       # unset our environment variables we set
91
       if [ -f "${configfile}" ]
92
       if [ -f "${configfile}" ]
92
       then
93
       then
93
         # save the old GIT values
94
         # save the old GIT values
94
-        export | grep -E "GIT_|ALL_PROXY" > ${oldenvfile}
95
+        export | grep -E "GIT_|ALL_PROXY|TZ" > ${oldenvfile}
95
         # source the config file
96
         # source the config file
96
         .  "${configfile}"
97
         .  "${configfile}"
97
       else
98
       else

Loading…
Cancel
Save