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,6 +30,7 @@ Then you should edit the new file in `~/.gitnonymous-KEYNAME/config` to set the
30 30
 	export GIT_COMMITTER_EMAIL="protect-all-babies@anonymous-mail-provider.com"
31 31
 	export GIT_AUTHOR_NAME="Baby Protector"
32 32
 	export GIT_AUTHOR_EMAIL="protect-all-babies@anonymous-mail-provider.com"
33
+	export TZ=UTC
33 34
 
34 35
 ## Use ##
35 36
 
@@ -48,6 +49,7 @@ This command:
48 49
  * Sets the `GIT_COMMITTER` and `GIT_AUTHOR` environment variables.
49 50
  * Sets the `GIT_SSH` environment variable to point at a configured `git-ssh-wrap` script.
50 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 54
 Your prompt will be updated to reflect the configured environment:
53 55
 
@@ -64,7 +66,6 @@ Or just exit the current shell.
64 66
 
65 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 69
  * Commit times will be leaked (narrows down sleeping/working hours).
69 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,3 +4,4 @@ export GIT_COMMITTER_NAME="YOUR NAME"
4 4
 export GIT_COMMITTER_EMAIL="your.email@your-anonymous-provider.com"
5 5
 export GIT_AUTHOR_NAME="YOUR NAME"
6 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,6 +68,7 @@ then
68 68
       unset GIT_SSH
69 69
       unset GIT_PROXY_COMMAND
70 70
       unset ALL_PROXY
71
+      unset TZ
71 72
       # restore any GIT_ environment variables set before
72 73
       . "${oldenvfile}"
73 74
       # unset our environment variables we set
@@ -91,7 +92,7 @@ then
91 92
       if [ -f "${configfile}" ]
92 93
       then
93 94
         # save the old GIT values
94
-        export | grep -E "GIT_|ALL_PROXY" > ${oldenvfile}
95
+        export | grep -E "GIT_|ALL_PROXY|TZ" > ${oldenvfile}
95 96
         # source the config file
96 97
         .  "${configfile}"
97 98
       else

Loading…
Cancel
Save