Sudo Rambles
  • Home
  • Privacy Policy
  • About
  • Contact
Categories
  • cheat-sheets (2)
  • guides (11)
  • news (1)
  • ramblings (4)
  • tutorials (10)
  • Uncategorized (9)
Sudo Rambles
Sudo Rambles
  • Home
  • Privacy Policy
  • About
  • Contact
  • Uncategorized

Routing all network traffic through TOR

  • 9th November 2019

Intro

I hear some of you shouting in the back, why would you do that, just use the TOR browser. Erm, yeah, sure, but what about the rest of the traffic your machine generates? Where does that go, dev/null?
Let’s go through the super easy to use tool that will route all of your traffic through TOR.

What is TOR (refresher)

Here’s what TOR does for your traffic in a super-simple illustration:

Tor routing illustrated

For an in-depth TOR explanation check the official site: https://2019.www.torproject.org/docs/documentation.html.en

Suggested book (affiliate link): Deep Web: The Hunt For Dread Pirate Roberts

Pre-reqs

Step 1. Have a Kali Linux machine

Yeah, I know, boooo. But wait, I’m currently working on a script that should allow you to do the same in Ubuntu. So, if you’re not Kali-ing at the moment, check back here for an update on that project. Sorry folks.

Step 2. Have a keyboard

Step 3. PIP (Python magic sauce)

The package requires Python 2.7, grab that if don’t have it already.

Get PIP installed (what is PIP: https://pypi.org/project/pip/)

sudo apt install python-pip

Step 4. Grab the git (not all of it obviously)

Git clone this: https://github.com/SusmithKrishnan/torghost

git clone https://github.com/SusmithKrishnan/torghost.git

Step 5. Granting executable permissions

Go inside the directory by running:

cd torghost/

Grant the permissions

chmod +x install.sh

Step 6. Install the ghost

./install.sh

And you’re done, here’s what can be seen in the terminal, once you run torghost:

TorGhost welcome screen

Usage

Run torghost start to start a new session. The script will wrap your traffic tightly and will keep it nice and warm in an onion formation.

Output for start:

TorGhost start command output

The Current IP is your new wrapped IP address, meaning the one that’s exiting the router

Output for switch:

TorGhost switch command output

Again, your Current IP is the exit node

Output for stop:

TorGhost stop command output

Closing

That’s it, super simple stuff, but it keeps you protected when you’re going about your legal pen-tests (remember, always get permission!)

Keep an eye out for the Ubuntu script, that’s in the makings.

Home

Previous Article
  • guides
  • ramblings

Alias a command – Ubuntu

  • 14th August 2019
View Post
Next Article
big brother eye, camera symbol
  • news
  • ramblings

DIY surveillance camera build

  • 14th January 2020
View Post
Sudo Rambles
  • LinkedIn
  • Twitter
A programmer's blog

Input your search keywords and press Enter.

GDPR notice
This website uses cookies to cache data localy. This means the site loads faster on later visits. Please, indicate if you're ok with this.Yep, that's fineNot my cup of tea Read More
Cookie Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT