Hack Forums
[Proxy] Setting up a system wide proxy chain using proxychain and tor - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: VPN, Proxies, and Socks (https://hackforums.net/forumdisplay.php?fid=91)
+---- Thread: [Proxy] Setting up a system wide proxy chain using proxychain and tor (/showthread.php?tid=6284442)



Setting up a system wide proxy chain using proxychain and tor - Biggy_Asian - Nov 11, 2024

Last post on this platform. Dont ask me for external contact information I wont give you it. I MIGHT very very big MIGHT post further opsec/tool posts like I have in the past but I will not bother to make any kind of connections. Thanks.


You will need to edit proxychains config if you want to route through other ports/ips which you can do by doing this:
Code
sudo nano /etc/proxychains.conf
Scroll to the very bottom and add ips and their respective port like this:
Code
ip:port user pass

Installing needed programs/tools:
|
\-> Installing proxychains:
|
Code
sudo apt install proxychains
|
\-> Installing tornet:
|
Code
pip install tornet # it is a python package however you can add it to
|
|
\-> Making tornet a bash command and verifying it is 'installed':
Code
#!/bin/bash

# Define the file path
file_path="/usr/local/bin/tornet.py" # so we can use it as a bash command in our terminal (used later)

# Check if the script is run as root
if [[ $EUID -ne 0 ]]; then
    echo "Please run this script as root."
    exit 1
fi

# Create the Python script file with the provided content
echo '#!/usr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from tornet.tornet import main

if __name__ == "__main__":
    sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
    sys.exit(main())' > "$file_path"

# Make the script executable
chmod +x "$file_path"

# Confirm the file has been created and is executable
if [[ -x "$file_path" ]]; then
    echo "Script created successfully at $file_path"
else
    echo "Failed to create the script."
fi

# verify tornet is working correctly
tornet # should just output to console
|
|
\-> Editing /etc/profile:
Code
sudo nano /etc/profile # so we can edit it
Once you have nano-ed the profile file go all the way to the bottom of the file (VERY BOTTOM) and add the following two lines:
Code
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libproxychains.so.4
export PROXYCHAINS_CONF_FILE=/etc/proxychains.conf
|
|
\-> Finalize:
Once you have saved the changes to the profile file and have everything setup correctly then you will need to log out and log back in.
When you have relogged your first open terminal should have the following output on start:
Code
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] DLL init: proxychains-ng 4.17
[proxychains] DLL init: proxychains-ng 4.17
If it does (I dont think it matters but either way) run the following command and compare your ip from the ip output:
Code
curl -X GET https://api.ipify.org
Example output:
Code
└────╼ ❯❯❯ curl -X GET https://api.ipify.org            

[proxychains] DLL init: proxychains-ng 4.17
[proxychains] Strict chain  ...  127.0.0.1:9050  ...  api.ipify.org:443  ...  OK
192.42.116.209%

@Bastille@ you might like this <3


RE: Setting up a system wide proxy chain using proxychain and tor - 2nd2N0NE - Dec 23, 2024

Hey Biggy! Would you mind sending me a private message? I'd have a offer-related request... Thanks


RE: Setting up a system wide proxy chain using proxychain and tor - Biggy_Asian - Jan 30, 2025

(Dec 23, 2024 07:07 PM)2nd2N0NE Wrote:  Hey Biggy! Would you mind sending me a private message? I'd have a offer-related request... Thanks

I am barely active here anymore. What do you need? Send me a covno not a pm as pms are ass on this website.


RE: Setting up a system wide proxy chain using proxychain and tor - Bastille - Feb 2, 2025

(Jan 30, 2025 09:43 AM)Biggy_Asian Wrote:  I am barely active here anymore.

Sad, hope you're doing well, feel free to come back sometimes, a lot of new things will happen on HF


RE: Setting up a system wide proxy chain using proxychain and tor - Biggy_Asian - Mar 17, 2025

(Feb 2, 2025 02:24 AM)Bastille Wrote:  Sad, hope you're doing well, feel free to come back sometimes, a lot of new things will happen on HF

I come back every now and then to check on my posts. thanks tho bro.


RE: Setting up a system wide proxy chain using proxychain and tor - ginxforce - May 4, 2025

__________________