Is there a CLI Tor HTTP client, like curl/wget but routed over the Tor network?
I want to make HTTP requests over Tor. Tor Browser is too heavy for my needs; I don't need to browse websites, I just need to make HTTP requests. I also don't want to route my entire computer's traffic over Tor. I ideally just want to be able to run a single command when I need to, that will function like curl/wget/a CLI HTTP client, except just routed over Tor (and can access onionsites as some of the services I need to make requests to are onionsites).
Does such a tool exist? I suppose I could write like a Python script for it or something but if something already exists I'll just use that.
Penta
in reply to communism • • •Penta
in reply to Penta • • •Tor - ArchWiki
wiki.archlinux.orgcommunism
in reply to Penta • • •Mark
in reply to communism • •Linux reshared this.
trevor (he/they)
in reply to communism • • •oniux might be exactly what you're looking for.
It was still in early development when I played with it months ago, so I'm not sure if it's ready for daily usage, but it's from the Tor Project team themselves, so I imagine it will only keep getting better.
Introducing oniux: Kernel-level Tor isolation for any Linux app | Tor Project
blog.torproject.orgtvcvt
in reply to communism • • •torsocks curl $url
Torsocks | Tor Project | Support
support.torproject.orgmedem
in reply to communism • • •Spooky Mulder
in reply to communism • • •torify
which you can prefix any CLI command with to have it route through Tor and resolve onion sites properly.thingsiplay
in reply to Spooky Mulder • • •I never knew about these CLI tools being packaged with Tor. After some research,
torify
nowadays is a wrapper aroundtorsocks
and one should usetorsocks
directly instead. I even found an 8 year old post citing the man page:man torify
:N.E.P.T.R
in reply to Spooky Mulder • • •oniux
. From the blog, "a small command-line utility providing Tor network isolation for third-party applications using Linux namespaces".Introducing oniux: Kernel-level Tor isolation for any Linux app | Tor Project
blog.torproject.org