SocksWebProxy is a C# project build to make http communication over the Tor network simple and easy for C# projects.
- C#
- Simple Interface for WebClient & WebRequest (Just assign a new SocksWebProxy to the *.Proxy attribute)
- No Need for Privoxy or similar service to translate http traffic to tor
- Easily Communicate over Tor with C#
Start Tor automatically and renew Ip-after every request. Follow the steps below to get everything to work and also being able to control Tor via Telnet.
- Copy torrc-defaults into the directory in which tor.exe is. Default directory if you are using Tor browser is: "~\Tor Browser\Browser\TorBrowser\Data\Tor"
- Open a cmd prompt window
- chdir to the directory where tor.exe is. Default directory if you are using Tor browser is: "~\Tor Browser\Browser\TorBrowser\Tor"
- Generate a password for Tor control port access. tor.exe -–hash-password “your_password_without_hyphens” | more
- Add your password password hash to torrc-defaults under ControlPort 9151. It should look something like this: hashedControlPassword 16:3B7DA467B1C0D550602211995AE8D9352BF942AB04110B2552324B2507. If you accept your password to be "password" you can copy the string above.
- You can now access Tor control via Telnet once it is started. Now the code can run, just edit the path to where your Tor files are located in the program. Test modifying Tor via Telnet:
- Start tor with the following command: tor.exe -f .\torrc-defaults
- Open up another cmd prompt and type: telnet localhost 9151
- If all goes well you should see a completely black screen. Type "autenticate “your_password_with_hyphens”" If all goes well you should see "250 OK".
- Type "SIGNAL NEWNYM" and you will get a new route, ergo new IP. If all goes well you should see "250 OK".
- Type "setevents circ" (circuit events) to enable console output
- Type "getinfo circuit-status" to see current circuits
If you are not familiar with C# then you will want to have a look at these free development tools
#####Windows
#####Mac & Linux
You will probably want to setup Tor on your development machine.
#####Tor
#####For Open Source Projects
If you are developing and distributing open source applications under the GPL License, then you are free to use this project under the GPL License. GPL FAQ
#####Commercial, Enterprise and Government Projects
Contact me at Landon.Key@gmail.com for more information on Commercial, Enterprise, and Government use of the this project.