3 votes

How to check if Tor socks proxy is working programatically python?

I personally wouldn't do this by getting a web page. It might depend on your use case but if you want to get status info about Tor you probably should get this info from the Tor control port (9051). ...
Lord Vapor's user avatar
3 votes

Why is browser exit node different from Privoxy exit node?

Tor does not use the same exit node for everything. The Tor Browser actually uses a security feature that makes sure it does not share the same circuits with any other program that uses the Tor client....
Sebastian's user avatar
  • 2,219
3 votes

I want upload a file to a ftp server using Tor proxy to comunicate with a Hidden Service [Python 3]

The tl;dr is that FTP and .onion do not go well together and never will, due to how the FTP protocol works. For more details, see below. FTP goes a little like this: Client connects to the "command" ...
cacahuatl's user avatar
  • 11k
2 votes
Accepted

Iterate through List of Exitnodes

This already exists as ExitMap. It's approach is to launch it's own copy of Tor which is configured not to automatically attach streams to existing circuits through use of the ...
cacahuatl's user avatar
  • 11k
2 votes
Accepted

cert type 4, 5, 7 in cert cell

All certificates types are listed here, see section "A.1. List of certificate types" [04] - Ed25519 signing key with an identity key (see prop220 section 4.2) [05] - TLS link ...
Oleg Pekar's user avatar
2 votes
Accepted

Determining circuit tor client is using

Tor clients keep a pool of circuits and may use several circuits simultaneously for streams depending on factors such as exit policies, stream isolation, etc. So there is generally not a single "...
Steve's user avatar
  • 3,132
1 vote

Python APP that requests switching to clean circuits hangs when served with UWSIG but works when it runs from the command line

A very frequent problem: you need a full shell context to execute your app. To do so you need to use a wrapper like screen to launch it in a detached mode with -md command line flags. Use apt install ...
Alexey Vesnin's user avatar
  • 6,208
1 vote
Accepted

Sending data to hidden service without browser

I would have your python script call torsocks curl and let curl do the hard work of connecting to the onion service rather than trying to code the same thing in python. For example: torsocks curl ...
elmerjfudd's user avatar
  • 2,274
1 vote
Accepted

how to make tor functions on Heroku

@lmen is probably talking about Tor Proxy Buildpack for Heroku, it can setup Tor on a heroku node with socks5 and control port available (They can be configured in the environment values). All you ...
NeverMine17's user avatar
1 vote

Trying to pass TTL expired error: socks.SOCKS5Error: 0x06: TTL expired

proxies = { 'http': 'socks5h://127.0.0.1:9050', 'https': 'socks5h://127.0.0.1:9050' socks proxies are not the same as http/https proxies. You can't interchange the two. you will need to use a ...
elmerjfudd's user avatar
  • 2,274
1 vote

The problem about stem's new_circuit and extend_circuit?

Yes, you will then have two circuits, and it will take some time for the previous circuit to be automatically cleaned up. A Stem controller does have a close_circuit(id) function you can use to close ...
Steve's user avatar
  • 3,132
1 vote

Fetching JSON via Tor

If you have VM setup with all network traffic routed through tor then you do not need to run torsocks.
Radim Kolář's user avatar
1 vote

Using Tor in a python script in Windows

This looks like it should work fine, as long as you give it the right Control and SOCKS ports when you create the TorRequests instance, I.E. request = TorRequest(proxy_port = 9150, ctrl_port=9151) ...
cacahuatl's user avatar
  • 11k
1 vote

WinError 10061 No connection could be made because the target machine actively refused it

No ControlPort is specified in the torrc that your copy of Tor is trying to read. ControlPort PORT|unix:path|auto [flags] ... (Default: 0) With the default of 0 meaning not to create one. Instead ...
cacahuatl's user avatar
  • 11k
1 vote
Accepted

Which python script allow me to know if tor is operational or not as a client?

You need to query the client bootstrap status. It's done - as it's said in control protocol spec like this: telnet 127.0.0.1 9051 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ...
Alexey Vesnin's user avatar
  • 6,208
1 vote

scripting Tor browser with marionette

Has anybody had any success using Tor Browser with Marionette? It was possible up to (at least) 52.3.0. start the browser: cd tor-browser_en-US/Browser ./start-tor-browser -marionette connect ...
M K's user avatar
  • 111
1 vote

How to reuse same .onion address with Tor ephemeral hidden services (python)?

Why not take a look here at the official docs ? It explicitly says, that key can be provided on creation. Of course, if you've already created an ephemeral hidden service, then no key or other stuff ...
Alexey Vesnin's user avatar
  • 6,208
1 vote

Using Tor to make HTTPS requests in Python

Here are your pyCURL and a howto UPDATE: Copy-pasting by request - copyright to code to sources mentioned upstrings: amnesia@amnesia: ~$ cat checkTor.py #!/usr/bin/env python import pycurl curl = ...
Alexey Vesnin's user avatar
  • 6,208
1 vote

Tor Path Selection using Stem to choose middle node

You have to construct the entire circuit yourself, you cannot just choose the middle node alone unfortunately. To do this, you need to use the extend_circuit command in Stem's controller API.
Sebastian's user avatar
  • 2,219
1 vote
Accepted

Version Mismatch Error with Onion-Py Library

You need to figure out a way to ensure you are running Python 2.7 and try again. Most likely you aren't using python 2.7 like you think you are. Check python from command line by typing python --...
james-see's user avatar
  • 344

Only top scored, non community-wiki answers of a minimum length are eligible