How to set up a Tor Exit Node & sniff traffic.

I decided to run my own Tor Exit node as a cheap way to add value to humanity. As always, I decided to have some fun with it. This is for educational purposes, don’t be a dick and stop using HTTP dammit.
Fun Fact: Wikileaks started out by running Tor exit nodes and sniffing traffic for documents and emails. By following this article, you’re a cheap wig and a few cases of sexual assault away from being the next Julian Assange.
Step 1. Finding a VPS
First, you’re going to need a VPS. Finding a hosting provider that is Tor friendly is generally difficult to do. No worries, we’re going to use Cockbox. They’re cheap, privacy friendly, accept bitcoin, and will generally leave you alone unless you do something really stupid.
Step 2. Configure Tor
Once you have your VPS, use the Tor Relay Configurator which will walk you through installing Tor, and configuring it correctly. This is a very painless process. Once you start arm, you should see traffic flowing.

Step 3. Sniffing Traffic
Fun Fact: Almost immediately upon sniffing traffic I saw botnet traffic that was attempting to exploit a Remote Code Execution vulnerability in Oracle WebLogic.
I recommend two options for sniffing traffic:
HTTPDump — Written in Golang, very fast and neat. Allows you to see the full body content. If you’re blackhat or doing this for fun, I recommend HTTPDump.

Urlsnarf — Part of the dsniff suite, logs to common log format. You can just apt-get install this one and it’ll work right out of the box. Doesn’t show you the full body content, but if you’re a Threat Intelligence company, this is perfect for you. Set up a bunch of exit nodes, use Logstash to push logs to Kibana. BAM! You’re now a bleeding edge company with a Deep Web threat intel dashboard.

Takeaways:
While this was just a ’24 hour weekend project’ I like to do from time to time; I was amazed how quickly someone could set up a Tor Exit node and sniff traffic. The longest part of this process was waiting for my bitcoin transaction to confirm.
A tech savvy individual could go from 0–60 in about an hour. If you’re not encrypting your traffic, there’s a high chance someone is seeing what you’re doing.






