Questions tagged [python]

Python is a programming language. For Tor there is the Stem library.

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
2answers
596 views

Cannot use get_ports() with stem modules

I am unable to use the function get_ports() with stem. It says # python get_ports.py OR [...] File "/usr/local/lib/python2.7/dist-packages/stem/socket.py", line 126, in send raise stem.SocketClosed(...
2
votes
0answers
461 views

Using Circuits in Parallel

Is there some easy method to use circuits in parallel in TOR using the STEM API. I wanted to use Website A for Circuit A and Website B for Circuit B. The problem is using threading the event listener ...
1
vote
0answers
132 views

Python3 + Tor's stem library => Permission denied when creating new hidden service

I am trying to deploy a new hidden service using Tor's stem library for Python3, but I am always receiving errors that the service can not be created due to '[Errno 13] Permission denied' issue. I am ...
1
vote
1answer
587 views

Tor Browser failed to start under Selenium

Trying to connect to tor via selenium for the first time. Using Windows 7 64 ...Getting this error code.. selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with ...
1
vote
0answers
299 views

Python JSON fetching via Socks5 proxy on Tails

I am trying to fetch JSON data, via a Python3 script, on Tails. I would like to know that this code is secure and doesn't leak IP or any other stuff. I know that Tails is configured to block any ...
1
vote
0answers
2k views

How to deal with RuntimeError: maximum recursion depth exceeded while calling a Python object?

This could be a very silly question, but I'm new to this topic and I couldn't figure out the problem after searching for a long time. It seems like I do have a Tor process listening. I tested it by ...
0
votes
0answers
15 views

Obfuscation to Interfere With Traffic Analysis

In contemplating traffic analysis, it occurred to me that having something generating extra legitimate (but irrelevant) traffic might help. To that end, I wrote a short Python script that: Takes one ...
0
votes
2answers
21 views

Tor "stem.connection.UnreadableCookieFile" error on scheduling python script on Airflow

I am using Apache Airflow to schedule my script. If I try to run the script from the terminal. stem is able to pickup the cookie file easily but If I try to run it via Airflow, it throws this error. ...
0
votes
1answer
49 views

How to host TOR in remote server to use as proxy

I am doing web scraping, and I am using tor as my proxy service. I am using ubuntu 20.4.x and python 3.9. As I have installed tor in my local system, I am using: proxies = { 'http': 'socks5://127....
0
votes
0answers
400 views

Python Selenium with Tor Socks5 proxy

I am trying to use Selenium with Firefox to scarpe a Cloudflare protect web page. I am having issue when using with TOR, although i get a new ip address but it throws an error when I am trying to ...
0
votes
0answers
98 views

Tor with Python and Selenium on MacOS

I want to use Python and Selenium to do some webscraping. I have a MacOS. Is there any good step by step instruction for the setup? Thank you very much
0
votes
0answers
102 views

Persistent installation of Python and non-native packages in Tails OS

Can Python (or Anaconda) be installed and run on Tails OS? If so, how to have a persistent installation of Python/Anaconda in a Tails USB drive? I thought Tails cleanses itself of any program that is ...
0
votes
0answers
72 views

Why can't I connect through tor when I can connect through tor browser?

I am trying to use tor on Windows to access Imgur which is blocked in my country, now when I try to use Tor Browser with obfs4 everything seems fine but when I try to use only tor somehow I can't ...
0
votes
1answer
122 views

How do I reuse the onion address of a hidden service

I first want to generate a service and save the private key for reuse if one hasn't already been generated and saved, and if one has been generated and saved I want to be able to load it again if ...
0
votes
1answer
573 views

Cannot connect to my tcp tor hidden service in Python

I have a fully functional tor hidden service with his v3 url, created with stem and the controller class. The server is redirecting the traffic into a local tcp server running on port 5000 created ...
0
votes
1answer
180 views

Using stem with multithreading Python

I am trying to use two circuits in parallel with stem. In tor browser, two different websites use two different circuits. I am trying to get similar functionality in my python code. Here is what I am ...
0
votes
0answers
69 views

Integrating Tor Browser and Python to get the same circute

This is a cross post from my StackOverFlow question(also I little edited). Ok, my question is quite straightforward: I want to use Python to make automated requests with stem (or any other library ...
0
votes
0answers
344 views

how to get ip address from onion url using python

I am trying to get ip address from darknet onion url. import subprocess import ipaddress for ip in ipaddress.IPv4Network('5.0.0.0/24'): subprocess.call(["tor-resolve", "-x", ip]) I am not getting ...
0
votes
0answers
3k views

Tried for 120 seconds to get a connection to [scrubbed]:6667 (waiting for controller)

I'm running some experiments using the stem library where I change circuit paths fairly frequently. Every so often, I get a stream detached event and a Socks5Error: 'TTL Expired' in my Python script, ...