Changes between Version 70 and Version 71 of doc/TorifyHOWTO/Misc


Ignore:
Timestamp:
Mar 13, 2018, 12:42:14 AM (3 months ago)
Author:
Jaruga
Comment:

Added wget example. Edited cURL instructions

Legend:

Unmodified
Added
Removed
Modified
  • doc/TorifyHOWTO/Misc

    v70 v71  
    4646[=#wget]
    4747== Wget (HTTP) ==
    48 '''Quick note:''' wget sends a User-Agent that often provides both a wget version number and the originating platform. For example, Tails 2.5 provides {{{wget/1.16 (linux-gnu)}}} as its User-Agent. Every operating system will provide different versions of wget in their repositories at any given time, thus allowing a hypothetical observer to make an educated guess at your current operating system. It's advisable to either fake your User-Agent (you can find the one Tor Browser is using by searching {{{general.useragent.override}}} in {{{about:config}}}), use a common operating system like Ubuntu or Debian, or simply by using a distribution like Tails that is designed to create a consistent anonymous set for all of its users.
     48'''Quick note:''' wget sends a User-Agent that often provides both a wget version number and the originating platform. For example, Tails 2.5 provides {{{wget/1.16 (linux-gnu)}}} as its User-Agent. Every operating system will provide different versions of wget in their repositories at any given time, thus allowing a hypothetical observer to make an educated guess at your current operating system. It's advisable to either fake your User-Agent (you can find the one Tor Browser is using by searching {{{general.useragent.override}}} in {{{about:config}}}), use a common operating system like Ubuntu or Debian, or simply by using a distribution like Tails that is designed to create a consistent anonymous set for all of its users.
     49
     50In wget, spoofing the User Agent can be done with the {{{-U}}} or {{{--user-agent}}} option. An example:
     51
     52{{{
     53wget -U "Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0" [urlhere]
     54}}}
     55
    4956=== Method 1: Torsocks ===
    5057Wget can be torified by using [https://trac.torproject.org/projects/tor/wiki/doc/torsocks Torsocks]. This can be accomplished by simply typing:
     
    6572== cURL ==
    6673=== Method 1: Proxy Settings
    67 cURL can be torified by simply using its {{{--proxy}}} argument:
    68 
    69 {{{
    70 curl --proxy "socks5h://localhost:9050" --tlsv1.2 --compressed --user-agent "Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0" -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'DNT: 1' [insertURLhere]
    71 }}}
    72 
    73 '''Notice''': Replace the {{{--user-agent}}} with the relevant one from the {{{general.useragent.override}}} field in your Tor Browser's {{{about:config}}}.
     74cURL can be torified by simply using its {{{--proxy}}} argument. An example:
     75
     76{{{
     77curl --proxy "socks5h://localhost:9050" --tlsv1.2 --compressed --user-agent "Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0" -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'DNT: 1' [urlhere]
     78}}}
     79
     80'''Notice''': Replace the {{{--user-agent}}} with the relevant one from the {{{general.useragent.override}}} field in your Tor Browser's {{{about:config}}}. Anonymizing the User Agent is important.
    7481
    7582=== Method 2: Torsocks ===