Skip to content

hepper/ProxyKit

 
 

Repository files navigation

#ProxyKit

Proxy server framework

Features :

  • Core functional
  • Socks4 proxy
  • Socks5
    • Login/Password auth
    • Port binding not yet
    • UDP not yet
  • HTTP/HTTPS not yet

Usage :

Socks :

using System;
using ProxyKit;
using ProxyKit.Socks;

namespace ProjectProxy
{
    class Program
    {
        static void Main(string[] args)
        {
            ProxyServer proxy = new SocksServer(1777);
            proxy.Connect += ProxyOnConnect;
            proxy.Start();
            Console.ReadKey(true);
        }

        private static void ProxyOnConnect(object sender, ConnectEventArgs e)
        {
            Console.WriteLine("New connection");
            e.Client.ReceiveClient += FromClient;
            e.Client.ReceiveServer += FormServer;
        }

        private static void FormServer(object sender, ClientReceiveEventArgs e)
        {
            Console.WriteLine("S->C: " + e.Count);
        }

        private static void FromClient(object sender, ClientReceiveEventArgs e)
        {
            Console.WriteLine("C->S: " + e.Count);
        }
    }
}

Support :

  • Any bugs please feel free to report here.
  • And you are welcome to fork and submit pullrequests.

License :

The code is available at github project under MIT licence

About

Proxy server framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%