3 ms·
soheil, you should note that blurring digits is often an ineffective way of preserving privacy. In this case it looks as if the blurred data is only IP address
by wyldfire 11y ago
soheil, you should note that blurring digits is often an ineffective way of preserving privacy.
In this case it looks as if the blurred data is only IP addresses, so unlikely to cause any real damage on its own. But API keys, passphrases, private keys, and the like -- don't use gaussian blur. Crop them out or overwrite them entirely with an opaque color.
Also, don't put anything important in /tmp. As a practical matter it won't matter much if no one else has access to this machine. But it's a good habit to get into.
- ams6110 11y agoIt's OK to put stuff in /tmp if you pay attention to permissions. ssh-agent puts its named pipes in /tmp
- justinsaccount 11y agoAll /tmp usage is not the same. ssh-agent uses mkdirtemp or similar, and does not hardcode a single path.
- soheil 11y agoGood point, I was thinking about it, decided blur looked better. For more important things I will start using an opaque color. Thanks for the /tmp tip.
- Hello71 11y agoand you also forgot the window titles. but it doesn't matter anyways. all IP addresses are by definition public; there are only about 4 billion of them anyways, less than there are people on Earth. you should probably focus more on making your code secure rather than obfuscating your IP address in screenshots. for example, in addition to what has already been said about /tmp, system() is almost never the correct answer. in this case, if options.user or dns contain "special characters" they may be interpreted by the shell differently from what you intended.
- lobster_johnson 11y agoAlso, don't assume /tmp is the right directory. Always read the $TMP environment variable.
- LukeShu 11y agoRead $TMPDIR. If you are feeling generous, then check $TMP if $TMPDIR isn't set. On that note, you may also be interested in $XDG_RUNTIME_DIR (complex-ish semantics) or $XDG_CACHE_HOME (Default: ~/.cache/)
- calgoo 11y agoHi, just a FYI, found a typo on the mainpage... You can select <<form>> a list of running servers under your account.
- aidos 11y agoOrdinarily the IP address wouldn't give you much to go on but another screenshot leaks more info - including the fact that this server is 180 security updates behind!
- throwaway2048 11y agoputting stuff in /tmp is fine if you use something like mkstemp to prevent symlink races, using a well known file name is certain bad however.