Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

SocksTcpClient - Socks supported TcpClient

This is a project I made originally so I could send webrequests over socks proxies so I am no longer bound to only using HTTP proxies in my programs. And since it is not something that important to me I decided to release it here. Yes, it does work with Tor. Right now it only has Socks 5 support as the protocol for 4/4a is different and I really cant be bothered to add support for it as socks 4 proxies are basically dead. It supports target hosts in domain, IPv4, and IPv6 format.

The methods are static, meaning you dont have to instantiate the class, you can just do it like this:
Code
TcpClient client = SocksTcpClient.Connect(string proxyHost, int proxyPort, string targetHost, int targetPort)

If something goes wrong, like a dead proxy, it will throw an error, so it is up to you to handle the errors. If something goes wrong and it does not throw an error, then it will return null, so you have to take that into account as well. You can use this to send webrequests by writing a simple wrapper for it, that just uses a stringbuilder to make the request and then encode that to UTF8 and write it to the networkstream.

Github:
https://github.com/GekkeVent/SocksTcpClient
Don't take credit for making this and don't attempt to sell this code. Give credit where credit is due.

Credits:
Aeonhack - giving me the idea.
LaPanthere - emotional support and inappropriate pictures at 10pm.
Odus - literally nothing.
Think I could find some use in this. Thanks man
so now u niga 🤣

(Mar 27, 2016 10:05 AM)Xerxes. Wrote:  Think I could find some use in this. Thanks man

i think i know u 😏
Shamelessly bumping this thread because I am a douche and want attention. ( ͡° ͜ʖ ͡°)
(Mar 29, 2016 08:56 AM)Ninja Wrote:  Shamelessly bumping this thread because I am a douche and want attention. ( ͡° ͜ʖ ͡°)

I will show you my gratitude by quoting your post.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by greekdevSep 9, 2026 10:36 AM 2 126 Sep 9, 2026 10:36 AM
Last Post: greekdev
[.NET] by elmagekOct 24, 2021 02:50 PM 7 294 Oct 24, 2021 02:50 PM
Last Post: #Kat
[C#] by asdoxOct 13, 2020 03:02 PM 2 389 Oct 13, 2020 03:02 PM
Last Post: REEND