Closed tintanto closed 1 week ago
Hi tintanto,
Yes it should work. Perhaps your web server is an HTTP proxy, rather than a SOCKS proxy.
This works for me (I'm using mitmproxy)
import requests
proxies = {
"http": "http://127.0.0.1:5000",
}
url = 'https://www.google.com/'
response = requests.get(url, proxies=proxies)
print(response.text)
Please let me know if it works for you :)
Cheers, Fidel
@fiddyschmitt Thank you for the reply. It seems I do not comprehend how the ft project works. I thought I would actually run ft on both my PC and destination PC, where I rdp to, then connect to 127.0.0.1:5000 using my python project and that would be enough for my requests
traffic to be redirected. I have used the two lines I have mentioned in my first post. I have also used {'http': 'http://127.0.0.1:5000', 'https': 'http://127.0.0.1:5000'}
and also {'http': 'socks5://127.0.0.1:5000', 'https': 'socks5://127.0.0.1:5000'}
with requests.get()
That did not work. It resulted in the remote PC displaying Error during connection to 10.1.0.48:8888. A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [::ffff:10.1.0.48]:8888
Is there an extra step I am missing? My aim is to actually use the remote PC VPN connection. If that is not possible please let me know.
Thank you.
No worries, it sounds very interesting. Let's get it working.
Is this your setup?
And when you do an HTTP request in your Python script, you'd like it originate out of the Remote PC, utilising the VPN connection it's running?
@fiddyschmitt Yes. That is my setup. Also, that is also what I want. I want my python script requests
to have the IP of the remote PC active VPN service. If that is not possible with ft I can settle for being able to send the requests to the remote PC and then try to find a different solution for utilizing the VPN connection. Thank you.
Yes File Tunnel doesn't act like a VPN service itself. It just tunnels TCP connections. So you'll need a Proxy server in your setup.
simple-proxy.exe
which listens on port 8888 by default@fiddyschmitt Thank you so much for the help. I think it actually worked. Sadly, the remote PC crashed before I could do further tests. Is there any way to reduce the memory consumption of ft. The program uses over 1.6GB of RAM? If not thanks again for the help.
That's great! You're welcome! I'm so glad it worked.
Shame about the crash.
I'll look to see if there's a way to reduce memory consumption in the coming weeks.
Hello. I am not sure if this project is for my use case or not. I want to redirect my python https requests through the RDP server. Is this possible using this project? If that is the case, I would appreciate any tips. I have tried using
In my python code but that did not work.