Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect to the Tor network using Phantomjs, selenium and c#

I am trying to automate a website on a .onion site using PhantomJS and Tor. Does anyone have any idea how to connect to the network?

like image 252
Jack Zavarella Avatar asked Mar 12 '23 03:03

Jack Zavarella


1 Answers

Tor client creates a local socks proxy server at 127.0.0.1:9050

Therefore you should start PhantomJS pointing it to that proxy:

phantomjs --proxy-type=socks5 --proxy=127.0.0.1:9050 script.js
like image 130
Vaviloff Avatar answered Apr 08 '23 07:04

Vaviloff