Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

iphopper

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

iphopper (More description coming soon)

A small guide on how to configure tor to change the exit node. Install homebrew if you already haven't, or use any other package manager.

Afterwards,

pascal
1. brew install tor
2. brew services start tor
3. brew services list

Make sure tor is running in the background, if it's not, you might have encountered the same issues I did. It is possible that it brings up error 257 when you check if tor is running. It might be an issue of missing a dependency, for me, surprisingly, it worked after installing stem. Try

pascal
pip install stem

if yours also didn't work. Now, time to change the configuration file. If you're using unix based system, it's probably in /etc/tor directory. If you used homebrew to install, it is probably in /opt/homebrew/etc/tor, but if you're on mac, your torrc is simply a torrc.sample file which you need to rename to torrc, and add the following lines in the file

pascal
ControlPort 9051
pascal
HashedControlPassword (*your passwords hash*)

You might want to add this to torrc file if the exit node isn't changing

pascal
SocksPort 9150 NoIsolateSOCKSAuth

It disables the automatic IP change over browser tab if you're using the tor browser, ignore this if you're not using the tor browser.

Although sometimes you might want to authenticate with a cookie file, then

it's important to notice that authentication is done via either a cookie file, password, or none. In that case, replace HashedControlPassword with

pascal
CookieAuthentication 1

Afterwards, locate your cookie file. In linux based systems, it's usually in

pascal
/var/lib/tor/control_auth_cookie

And modify the attached newscript file to work accordingly. (update notice) The script works slow, but it is possible to accelerate it by setting automatic circuit renewal time by a high value. If so, add

pascal
MaxCircuitDirtiness <time in seconds>

(update notice) I am trying to see if it's possible to disable automatic circuit renewal and let the script handle it.

Now, time to set up a password. Here, you will probably have issues if your password is too simple and too short, make sure you come up with a secure password. Time to hash it with

pascal
tor --hash-password (*your password*)

The hash output is going to output you something like this. 16: (the hash) 16 is apparently the number of the hashing algorithm it uses, but it also needs to be included in your password's hash. Afterwards, in the same directory as your torrc is in add the script.sh file.

Time to give it execution rights

pascal
chmod +x script.sh

Now, we need to set up the browser network configurations to route the traffic through tor. If you're using the tor browser, skip these steps and just run the script and test if your ip changed. Or, you can just turn any browser into a tor browser by putting socks host proxy as

pascal
127.0.0.1

with 9050 port, then check the tickmark for socks v5, and proxy DNS for using socks v5.

Afterwards, run the script, and it should change your ip.