基于Twisted的Tor控制器客户端,具有状态跟踪和配置抽象。http://www.youtube.com/watch?v=qqqqqqqqqqqqq一

txtorcon的Python项目详细描述


主页:https://github.com/meejah/txtorcon
作者:meejah
作者-电子邮件:meejah@meejah.ca
许可证:mit
描述:




另外:https://txtorcon.readthedocs.org获取渲染文档









图片::https://travis-ci.org/meejah/txtorcon.png?branch=master
:目标:https://www.travis-ci.org/meejah/txtorcon
:alt:travis

图片::目标:https://coveralls.io/repos/meejah/txtorcon/badge.png
:目标:https://coveralls.io/r/meejah/txtorcon
:alt:coveralls
图片:http://codecov.io/github/meejah/txtorcon/coverage.svg?branch=master
:目标:http://codecov.io/github/meejah/txtorcon?branch=master
:alt:codecov

图片::https://readthedocs.org/projects/txtorcon/badge/?版本=稳定
:目标:https://txtorcon.readthedocs.io/en/stable
:alt:readthedocs
图片::https://readthedocs.org/projects/txtorcon/badge/?version=latest
:目标:https://txtorcon.readthedocs.io/en/latest
:alt:readthedocs

图片::https://landscape.io/github/meejah/txtorcon/master/landscape.svg?style=flat
:目标:https://landscape.io/github/meejah/txtorcon/master
:alt:code health




**文档**https://xtorcon.readthedocs.org://timaygor 4qbr 4qbr****************************:https://github.com/meejah/txtorcon
`torsocks git clone git://timaq4yggg2ieggci7.洋葱/txtorcon.git `
-mit-许可;
-python 2.7,pypyocks git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git git gi git git git git/g g g g g g g g g g://gi。thub.com/glyph/automat>;'
(以及"ipaddress<;https://pypi.python.org/pypi/ipaddress>;`非python 3的此后台端口)
注意:
一些大型的新功能已经在master上实现。如果您直接从master工作,请注意这些api中的一些在下一个版本之前可能会发生变化。<;https://gitweb.torproject.org/torspec在基于事件的python程序中控制或使用tor。如果twisted程序支持
端点(就像"twistd"一样),则服务器或客户端可以立即使用
tor,而无需更改代码。启动自己的ToR或连接到ToR,获取实时流、电路、中继更新;读取并更改
配置;监视事件;构建电路;创建洋葱服务;
等等('readthedocs<;https://txtorcon.readthedocs.org>';一些可能的动机示例代码(br/)代码::python

twisted from.internet.task import react
from twisted.internet.defer import inlinecallbacks
from twisted.internet.endpoints import unixclientpoint
import treq
导入txtorcon

@react
@inlinecallbacks
def main(reactor):
tor=yield txtorcon.connect(
reactor,
unixclientpoint(reactor,"/var/run/tor/control")


print("已连接到Tor version{}.格式(Tor.version))

print("正在下载{}.格式(url))
resp=yield treq.get(url,agent=Tor.web\u agent())

打印("{}字节"。格式(resp.length))
数据=yield resp.text()
打印("得到的{}字节:n{}\n[…]{}"。格式(
长度(数据),
数据[:120],
数据[-120],
))

print("创建电路")
state=yield tor.create_state()
circ=yield state.build_circuit()
yield circ.when_build()
print("path:{}"。format("->;")。join([r.ip for r in circ)。路径])

print("通过上述电路下载Meejah的公钥…")
resp=yield treq.get(
'https://meejah.ca/meejah.asc',
agent=circ.web_agent(reactor,tor.config.socks_endpoint(reactor)),

data=yield resp.text()
打印(数据)





DEN
服务:

…代码块::shell session

$sudo apt get install--install建议使用python txtorcon
$twistd-n web--port"onion:80"--path~/public\u html



on开始"in docs/index.rst
<;docs/index.rst>;`。也可以在"txtorcon.rtfd.org"上托管
<;https://txtorcon.readthedocs.io/en/latest/>;` `.

`_)。

…_ twisted:https://twistedmatrix.com/trac

mit许可证
分类器:自然语言::英语
分类器:操作系统::posix::linux
分类器:操作系统::unix
分类器:编程语言::python
分类器:编程语言::python::2
分类器:编程语言::python::2。6
分类器:编程语言::python::2.7
分类器:编程语言::python::3
分类器:主题::软件开发::库::python模块
分类器:主题::Internet::代理服务器
分类器:主题::Internet
分类器:主题::SECUrity
提供额外的:dev

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
用于批量操作的java RESTful API分块响应   java读取在线存储的文本文件   在Java ME中将双精度舍入到小数点后5位   java查找一个数字的最接近因子   java更改JMenuBar的字体   java Kmeans聚类算法运行时间和复杂性   java是否可以阻止try catch返回null   java内容解析器指向具有正确URI的错误表   java Android Kotlin插装测试未被识别为插装测试   java TestNG@Dataprovider   在forloop和print语句中声明变量时发生java错误   java在Android Studio 3中设置JNI