16.xhtml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * <https://y.st./>
  4. * Copyright © 2015 Alex Yst <mailto:copyright@y.st>
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <https://www.gnu.org./licenses/>.
  18. **/
  19. $xhtml = array(
  20. 'title' => 'A bug in the <code>torsocks</code> and <code>torify</code> commands',
  21. 'body' => <<<END
  22. <p>
  23. Someone on the <a href="ircs://irc.oftc.net:6697/%23Tor">$a[Tor] channel</a> was having trouble getting their graphical $a[IRC] client to work through $a[Tor], but having no trouble getting a text-based client to connect over $a[Tor].
  24. They cited the difference being that with the text-based client, they could run &quot;torsocks {client&quot;&quot; to start the command line client and force the connection through $a[Tor].
  25. I pointed out that the same can be done for graphical clients as well, you just have to start the graphical client from the command line.
  26. While trying to get this set up, we ran into an interesting bug in the <code>torsocks</code> command, a bug also present in the <code>torify</code> command.
  27. It appears that even if the application to be run through torsocks/torify has its path delimited by quotation marks, these two commands are unable to run applications that include spaces in their file paths.
  28. It seems though that this bug may only pertain to the parsing of the input to the command though, not the handling in the file system, as making a symbolic link to the path with spaces allows you to use the symbolic link as the input path to <code>torsocks</code>/<code>torify</code>, provided the path of the symbolic link itself has no spaces.
  29. </p>
  30. <p>
  31. My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
  32. </p>
  33. END
  34. );