在 TOR 网络中获取请求而不安装 TOR 浏览器/捆绑包? [英] GET requests in TOR network without installing TOR browser/bundle?

查看:43
本文介绍了在 TOR 网络中获取请求而不安装 TOR 浏览器/捆绑包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想对 TOR 网络执行 http/https GET 请求.

I want to perform http/https GET requests to the TOR network.

我的一个问题是该项目需要可扩展,我正在设计的软件需要轻量级,因此不可能让所有用户都安装 TOR 包以与我的程序一起使用.

My one issue is that this project needs to be scaleable, the software I'm designing needs to be light so having all users installing the TOR bundle to use with my program isn't possible.

有没有办法在没有浏览器的情况下在 TOR 网络上生成 GET 请求?例如,我可以直接请求 TOR 网桥吗?

Is there someway to generate GET requests on the TOR network without having the browser? For example can I do direct requests to a TOR bridge?

推荐答案

是的,这是可能的.Tor 浏览器只是在后台运行 Tor 守护进程并通过它代理它的请求.您只需为自己的应用程序安装、配置和运行守护程序.

Yes, it's possible. Tor Browser just runs the Tor daemon in the background and proxies it's requests through it. You'll just want to install, configure, and run the daemon yourself for your application.

对于 Windows 下载并安装 Tor 专家包.在 Linux 上,要么从源代码编译最新版本,要么安装他们的 存储库之一 到您的系统并通过包管理器安装(推荐).注意:您当前的发行版可能有 Tor 包,但您不应该使用它,因为它们通常不会保持最新并且运行的版本要旧得多.使用 Tor 项目管理的存储库之一,因为这些版本会保持最新.

For Windows download and install the Tor expert bundle. On Linux, either compile the latest version from source, or install one of their repositories to your system and install via the package manager (recommended). Note: Your current distro probably has Tor available as a package but you shouldn't use that because they are typically not kept up to date and are running much older versions. Use one of the repositories managed by the Tor project as those releases are kept up to date.

如果您希望进行更改或自定义 SocksPort(您的应用程序将用于通过 Tor 代理请求和 DNS 查找的端口)和其他设置.

You'll then need to edit the torrc configuration file if you wish to make changes or customize the SocksPort (the port your application will use to proxy requests and DNS lookups through Tor) and other settings.

然后您可能需要参考手册并且由于您提到您使用的是 Python,请考虑使用 Stem 使用其控制协议与 Tor 进行通信.Stem 还具有一些用于启动 Tor 进程的功能.然后根据您在应用程序中使用的网络/HTTP 库,查看它是否支持 SOCKS5 并将其配置为使用 Tor 的 SOCKS 端口进行通信.

You'll then probably want to refer to the manual and since you mentioned you're using Python, look into using Stem to communicate with Tor using its control protocol. Stem also has some functionality for launching Tor processes as well. Then depending on what networking/HTTP library you're using in your application, see if it supports SOCKS5 and configure it to use Tor's SOCKS port for communication.

这篇关于在 TOR 网络中获取请求而不安装 TOR 浏览器/捆绑包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆