0

I have a python script I made which requests pages on the web. I am using a mac os and am using a socks proxy on 127.0.0.1:9150 on my wifi (pass all apps thru proxy --tor--). Using wireshark, how do I know it is using the proxy for sure? I can view every request in plain text!

Note: I know my browsers are well setup with tor.

5
  • Submit a request to a IP echo service?... bot.whatismyipaddress.com
    – JasonSec
    Commented Jan 20, 2016 at 4:28
  • @JasonSec Hi, I just did it, and it prints out my real ip adress.
    – Bob Ebert
    Commented Jan 20, 2016 at 4:35
  • well then you know your python script is not using the proxy.
    – JasonSec
    Commented Jan 20, 2016 at 4:36
  • @JasonSec Right, well do you know how to make sure it uses the proxy or I create a new post for that?
    – Bob Ebert
    Commented Jan 20, 2016 at 4:36
  • You should post a description of your problem and the relevant python code that makes the request to stackoverflow or another programming Q/A forum, yes.
    – JasonSec
    Commented Jan 20, 2016 at 4:38

1 Answer 1

-1

check your ip

session = requests.session()
session.proxies = {}
session.proxies['http'] = 'socks5h://localhost:9150'
session.proxies['https'] = 'socks5h://localhost:9150'
r = session.get("http://httpbin.org/ip")
print(r.text)
1
  • Please add more explanation to your answer.
    – Albin
    Commented Aug 19, 2019 at 11:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .