tor_control | Rust interface to the Tor Control Protocol | Router library
kandi X-RAY | tor_control Summary
kandi X-RAY | tor_control Summary
Rust interface to the Tor Control Protocol (TorCP)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of tor_control
tor_control Key Features
tor_control Examples and Code Snippets
Community Discussions
Trending Discussions on tor_control
QUESTION
This is the whonix documentation on stream isolation and tor circuits
This is the whonix documentation on interfacing and controlling Tor via sockets
I have previously tried the python requests library to make GET requests to Tor's official link for checking exit node IP information inside a whonix workstation VM (read about whonix here). The request always shows the same IP information, independent of me running the script, closing it, running it again. In the first link the author describes what applications are already supported. If not listed, the user must provide support.
I attempted to provide support in my own script by communicating to the specific socket using first sockets, then the stem library. Sockets by itself had no effect, and now the stem library is giving me errors at runtime.
...ANSWER
Answered 2021-Sep-21 at 15:59There is no need to use stem or connect to the control port to enable stream isolation for your circuits. Stream isolation is determined by the credentials supplied to Tor's SOCKS proxy.
If you are using Python requests
, see this answer.
To use the same IP for a connection, use the same credentials when connecting to the SOCKS proxy. If you want to change the IP (use a different circuit), then you need only use a different set of credentials.
In the example below, each requests session uses a different circuit and should have a different exit IP address.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tor_control
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page