tor Tutorial "Sprechen mit Russland" bei 45 - 50% stecken

wenn ich versuche, dem Tutorial zu folgen https: //stem.torproject.org/tutorials/to_russia_with_love.htm) Wie starte ich Tor? Ich bleibe bei 45% stecken undmanchma bei 50%. Ich benutze Windows 8, Python 3.4 und die LiClipse-Idee.

[1mStarting Tor: [0m [34mApr 26 12: 47: 21.000] Bootstrapped 0%: Start [0m [34mApr 26 12: 47: 21.000] Bootstrapped 45%: Abfrage nach Relay-Deskriptoren [0m [34mApr 26 13 : 04: 00.000 [Hinweis] Bootstrapped 50%: Relay-Deskriptoren werden geladen [0m

Das Skript sieht so aus, die Änderung, die ich hier vorgenommen habe, istrequests Bibliothek statturllib, um Daten von einer Quelle anzufordern, aber ich komme hier sowieso nicht zu diesem Teil des Codes. Dies ist im Grunde eine Kopie des Codes auf der Tutorial-Seite mit SocksiPy.

TorConnector.py:

from io import StringIO
import socket
import requests

import socks  # SocksiPy module
import stem.process

from stem.util import term

SOCKS_PORT = 7000

# Set socks proxy and wrap the urllib module

socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, '127.0.0.1', SOCKS_PORT)
socket.socket = socks.socksocket

# Perform DNS resolution through the socket

def getaddrinfo(*args):
  return [(socket.AF_INET, socket.SOCK_STREAM, 6, '', (args[0], args[1]))]

socket.getaddrinfo = getaddrinfo

def query(url):
  """
  Uses requests to fetch a site using SocksiPy for Tor over the SOCKS_PORT.
  """

  try:
    result = requests.get(url)
    return result
  except:
    return "Unable to reach %s" % url



# Start an instance of Tor configured to only exit through Russia. This prints
# Tor's bootstrap information as it starts. Note that this likely will not
# work if you have another Tor instance running.

def print_bootstrap_lines(line):
  if "Bootstrapped " in line:
    print(term.format(line, term.Color.BLUE))


print(term.format("Starting Tor:\n", term.Attr.BOLD))

tor_process = stem.process.launch_tor_with_config(
  config = {
    'SocksPort': str(SOCKS_PORT),
    'ExitNodes': '{ru}',
  },
  init_msg_handler = print_bootstrap_lines,
)

print(term.format("\nChecking our endpoint:\n", term.Attr.BOLD))
print(term.format(query("https://www.atagar.com/echo.php"), term.Color.BLUE))

tor_process.kill()  # stops tor

Ich habe auch versucht, die Skriptdatei TorConnector.py in das @ zu verschiebeC:\Python34\Lib\site-packages Ordner und führen Sie es an einer Eingabeaufforderung mitpython TorConnector.py aber das gleiche passiert, ich bin immer noch auf 45% fest.

Auch wenn ich den Prozess Tor.exe beende, wenn er bei 45% hängen bleibt, sagt er mir Folgendes:

Traceback (letzter Aufruf zuletzt): Datei "C: \ Users \ gatsu \ Eigene Dateien \ LiClipse Workspace \ TorCommunicator \ TorConnector.py", Zeile 53, in init_msg_handler = print_bootstrap_lines, Datei "C: \ Python34 \ lib \ site- packages \ stem \ process.py ", Zeile 246, in launch_tor_with_config return launch_tor (tor_cmd, args, torrc_path, completion_percent, init_msg_handler, timeout, take_ownership) Datei" C: \ Python34 \ lib \ site-packages \ stem \ process.py " Zeile 136 in launch_tor raise OSError ('Prozess beendet:% s'% last_problem) OSError: Prozess beendet: GEOIP-Datei C: \ Users \ gatsu \ AppData \ Roaming \ tor \ geoip6 konnte nicht geöffnet werden. Wir wurden so konfiguriert, dass Knoten in bestimmten Ländern verwendet (oder vermieden) werden. Wir benötigen GEOIP-Informationen, um herauszufinden, um welche es sich handelt.

Ich hoffe, es hilft herauszufinden, warum das mich stecken lässt.

Ich habe nicht einmal diese Datei: C: \ Users \ gatsu \ AppData \ Roaming \ tor \ geoip6

Antworten auf die Frage(6)

Ihre Antwort auf die Frage