tor

Unable to make python requests over tor ConnectionRefusedError: [WinError 10061]

廉价感情. 提交于 2021-02-10 18:39:57
问题 I am trying to make requests using python requests over tor, but i get the error "ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it". Here is the code i am using: import requests def get_tor_session(): session = requests.session() # Tor uses the 9050 port as the default socks port session.proxies = {'http': 'socks5://127.0.0.1:9050', 'https': 'socks5://127.0.0.1:9050'} return session # Make a request through the Tor connection

Unable to make python requests over tor ConnectionRefusedError: [WinError 10061]

五迷三道 提交于 2021-02-10 18:33:10
问题 I am trying to make requests using python requests over tor, but i get the error "ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it". Here is the code i am using: import requests def get_tor_session(): session = requests.session() # Tor uses the 9050 port as the default socks port session.proxies = {'http': 'socks5://127.0.0.1:9050', 'https': 'socks5://127.0.0.1:9050'} return session # Make a request through the Tor connection

How to get the Tor ExitNode IP with Python and Stem

倖福魔咒の 提交于 2021-02-08 07:42:35
问题 I'm trying to get the external IP that Tor uses, as mentioned here. When using something like myip.dnsomatic.com, this is very slow. I tried what was suggested in the aforementioned link (python + stem to control tor through the control port), but all you get is circuit's IPs with no assurance of which one is the one on the exitnode, and, sometimes the real IP is not even among the results. Any help would be appreciated. Also, from here, at the bottom, Amine suggests a way to renew the

How to configure a tor proxy on windows?

我是研究僧i 提交于 2021-02-05 07:01:21
问题 How do I configure a tor proxy on windows? For example, I want to run the following python script through a tor proxy: import requests proxies = { 'http':'socks5h://localhost:9050', 'https':'socks5h:/localhost:9050' } url = 'someWebsite.onion' res = requests.get(url, proxies=proxies) On unix systems, you can simply run tor in terminal, but this doesn't seem to work on windows. 回答1: Txtorcon and Stem are libraries developed by the Tor Project for controlling Tor from Python. Stem doesn't have

Android/Java: How to use Tor-Onion-Proxy-Library?

拥有回忆 提交于 2020-12-11 05:30:59
问题 I will connect to a server in an Android app with tor but without using orbot. I found this Library: https://github.com/jehy/Tor-Onion-Proxy-Library I added compile 'com.github.jehy:Tor-Onion-Proxy-Library:0.0.7' compile 'org.slf4j:slf4j-api:1.7.7' compile 'org.slf4j:slf4j-android:1.7.7' to my build.gradle (Module: app) and allprojects { repositories { maven { url 'https://jitpack.io' } } } Next I added in my Fragment in the onCreateView int totalSecondsPerTorStartup = 4 * 60; int

Android/Java: How to use Tor-Onion-Proxy-Library?

有些话、适合烂在心里 提交于 2020-12-11 05:30:16
问题 I will connect to a server in an Android app with tor but without using orbot. I found this Library: https://github.com/jehy/Tor-Onion-Proxy-Library I added compile 'com.github.jehy:Tor-Onion-Proxy-Library:0.0.7' compile 'org.slf4j:slf4j-api:1.7.7' compile 'org.slf4j:slf4j-android:1.7.7' to my build.gradle (Module: app) and allprojects { repositories { maven { url 'https://jitpack.io' } } } Next I added in my Fragment in the onCreateView int totalSecondsPerTorStartup = 4 * 60; int

Android/Java: How to use Tor-Onion-Proxy-Library?

[亡魂溺海] 提交于 2020-12-11 05:30:13
问题 I will connect to a server in an Android app with tor but without using orbot. I found this Library: https://github.com/jehy/Tor-Onion-Proxy-Library I added compile 'com.github.jehy:Tor-Onion-Proxy-Library:0.0.7' compile 'org.slf4j:slf4j-api:1.7.7' compile 'org.slf4j:slf4j-android:1.7.7' to my build.gradle (Module: app) and allprojects { repositories { maven { url 'https://jitpack.io' } } } Next I added in my Fragment in the onCreateView int totalSecondsPerTorStartup = 4 * 60; int

Can't connect to dockerized tor proxy

此生再无相见时 提交于 2020-12-05 11:28:34
问题 On Lubuntu I was able to use tor just by installing it and then connecting to its socks proxy, but on docker with alpine it doesn't seem to be that easy. Since I left my /etc/tor/torrc the way it came, it only consisted of lines that were commented out. So for alpine I just used the torrc.sample file which also only had lines that were commented out. Here is my Dockerfile : FROM alpine:latest RUN apk update && apk upgrade && apk add tor curl && rm /var/cache/apk/* && cp /etc/tor/torrc.sample

Can't connect to dockerized tor proxy

核能气质少年 提交于 2020-12-05 11:25:08
问题 On Lubuntu I was able to use tor just by installing it and then connecting to its socks proxy, but on docker with alpine it doesn't seem to be that easy. Since I left my /etc/tor/torrc the way it came, it only consisted of lines that were commented out. So for alpine I just used the torrc.sample file which also only had lines that were commented out. Here is my Dockerfile : FROM alpine:latest RUN apk update && apk upgrade && apk add tor curl && rm /var/cache/apk/* && cp /etc/tor/torrc.sample

Can't connect to dockerized tor proxy

对着背影说爱祢 提交于 2020-12-05 11:22:04
问题 On Lubuntu I was able to use tor just by installing it and then connecting to its socks proxy, but on docker with alpine it doesn't seem to be that easy. Since I left my /etc/tor/torrc the way it came, it only consisted of lines that were commented out. So for alpine I just used the torrc.sample file which also only had lines that were commented out. Here is my Dockerfile : FROM alpine:latest RUN apk update && apk upgrade && apk add tor curl && rm /var/cache/apk/* && cp /etc/tor/torrc.sample