生成Tor控制端口密码 [英] Generating tor controlport password

查看:130
本文介绍了生成Tor控制端口密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用tor-request节点模块,并且遇到问题.我遵循了可以找到的所有步骤和指示,已经在线搜索了每个站点,然后重新启动了计算机.我无法完成我的项目,而且确实很挣扎.我不断收到双引号错误.非常感谢您的帮助.

I am using the tor-request node module and am having problems. I have followed all steps and directions I could find, Ive searched every site online and I've restarted my computer. I cant finish my project and really am struggling. I keep getting Double Quote Error. Id appreciate any help.

//开始的人

tor &

我使用tor --hash-password "myPasswordHere" | tail -n 1

//I also tried
tor --hash-password myPasswordHereWithOutQuotes

//torr文件

ControlPort 9051

ControlPort 9051

HashedControlPassword 16:7{{numbers that ^^ returned}}786C1

//index.js/tor-request

//index.js / tor-request

var TorControlPort = {
  password: "myPasswordHere", 
  host: 'localhost',
  port: 9051,
  ...

错误Uncaught Error: Error communicating with Tor ControlPort 551 Invalid quoted string. You need to put the password in double quotes.

ERROR Uncaught Error: Error communicating with Tor ControlPort 551 Invalid quoted string. You need to put the password in double quotes.

推荐答案

这看起来像是库中的错误.

This looks like a bug in the library.

我在此处签出了它看起来图书馆似乎并没有按要求引用密码.

I checked out the source here and it doesn't look like the library is quoting the password as it should.

相关代码:

var commands = [
  'authenticate '+ password +'', // authenticate the connection

如您所见,密码未加引号.

As you can see the password is not quoted.

您应该可以使用的临时解决方法是将ascii密码转换为十六进制,Tor将允许不加引号.例如password = 70617373776f7264.

A temporary workaround you should be able to use would be to convert your ascii password to hex which Tor will allow without quotes. e.g password = 70617373776f7264.

这篇关于生成Tor控制端口密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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