Start() public method

public Start ( ) : void
return void
Esempio n. 1
1
 static void Main(string[] args)
 {
     Socks5Server x = new Socks5Server(IPAddress.Any, 1080);
     PluginLoader.ChangePluginStatus(false, typeof(Auth));
     x.Start();
     Socks5Client m = new Socks5Client("localhost", 1080, "portquiz.net", 65532);
     m.OnConnected += M_OnConnected;
     m.OnDataReceived += M_OnDataReceived;
     m.ConnectAsync();
     while (true)
     {
         /*Console.Clear();
         Console.Write("Total Clients: \t{0}\nTotal Recvd: \t{1:0.00##}MB\nTotal Sent: \t{2:0.00##}MB\n", x.Stats.TotalClients, ((x.Stats.NetworkReceived / 1024f) / 1024f), ((x.Stats.NetworkSent / 1024f) / 1024f));
         Console.Write("Receiving/sec: \t{0}\nSending/sec: \t{1}", x.Stats.BytesReceivedPerSec, x.Stats.BytesSentPerSec);*/
         Thread.Sleep(1000);
     }
 }
Esempio n. 2
0
 static void Main(string[] args)
 {
     Socks5Server f = new Socks5Server(IPAddress.Any, 1080);
     f.Authentication = true;
     f.OnAuthentication += f_OnAuthentication;
     f.Start();
 }
Esempio n. 3
0
 static void Main(string[] args)
 {
     Socks5Server x = new Socks5Server(IPAddress.Any, 1084);
     x.Start();
     PluginLoader.ChangePluginStatus(false, typeof(socks5.ExamplePlugins.DataHandlerExample));
     //enable plugin.
     /*foreach (object p in PluginLoader.GetPlugins)
     {
         if (p.GetType() == typeof(LoginHandlerExample))
         {
             //enable it.
             PluginLoader.ChangePluginStatus(true, p.GetType());
             Console.WriteLine("Enabled {0}.", p.GetType().ToString());
         }
     }*/
     //Start showing network stats.
     Socks5Client p = new Socks5Client("localhost", 1084, "your.ip.goes.here or domain", 9000, "yolo", "swag");
     p.OnConnected += p_OnConnected;
     p.ConnectAsync();
     while (true)
     {
         /*Console.Clear();
         Console.Write("Total Clients: \t{0}\nTotal Recvd: \t{1:0.00##}MB\nTotal Sent: \t{2:0.00##}MB\n", x.Stats.TotalClients, ((x.Stats.NetworkReceived / 1024f) / 1024f), ((x.Stats.NetworkSent / 1024f) / 1024f));
         Console.Write("Receiving/sec: \t{0}\nSending/sec: \t{1}", x.Stats.BytesReceivedPerSec, x.Stats.BytesSentPerSec);*/
         Thread.Sleep(1000);
     }
 }
Esempio n. 4
0
 static void Main(string[] args)
 {
     Socks5Server f = new Socks5Server(IPAddress.Any, 10003);
     f.Authentication = true;
     f.OnAuthentication += f_OnAuthentication;
     f.OnDataReceivedClient += f_OnDataReceivedClient;
     f.OnDataReceivedRemote += f_OnDataReceivedRemote;
     f.Start();
 }
Esempio n. 5
0
 private void init_socks5()
 {
     if (port != null)
     {
         proxy = new Socks5Server(IPAddress.Any, Convert.ToInt32(port));
     }
     proxy.PacketSize = 65535;
     proxy.Start();
 }
Esempio n. 6
0
 static void Main(string[] args)
 {
     Socks5Server x = new Socks5Server(IPAddress.Any, 1080);
     x.Start();
     while (true)
     {
         Console.Clear();
         Console.Write("Total Clients: \t{0}\nTotal Recvd: \t{1:0.00##}MB\nTotal Sent: \t{2:0.00##}MB\n", x.Stats.TotalClients, ((x.Stats.NetworkReceived / 1024f) / 1024f), ((x.Stats.NetworkSent / 1024f) / 1024f));
         Console.Write("Receiving/sec: \t{0}\nSending/sec: \t{1}", x.Stats.BytesReceivedPerSec, x.Stats.BytesSentPerSec);
         Thread.Sleep(1000);
     }
 }
Esempio n. 7
0
 static void Main(string[] args)
 {
     AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
     sock5 = new Socks5Server(IPAddress.Any, 7777);
     sock5.PacketSize = 65535;
     sock5.Start();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new MainForm());
     sock5.Stop();
     //output to console instead.
     Environment.Exit(0);
 }
Esempio n. 8
0
 static void Main(string[] args)
 {
     AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
     sock5            = new Socks5Server(IPAddress.Any, 7777, 4096);
     sock5.PacketSize = 65535;
     sock5.Start();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new MainForm());
     sock5.Stop();
     //output to console instead.
     Environment.Exit(0);
 }
Esempio n. 9
0
 public MainForm()
 {
     InitializeComponent();
     sock5 = new Socks5Server(IPAddress.Any, 1080);
     sock5.Start();
 }
Esempio n. 10
0
 public MainForm()
 {
     InitializeComponent();
     sock5 = new Socks5Server(IPAddress.Any, 1080);
     sock5.Start();
 }
Esempio n. 11
0
 public static void Main(string[] args)
 {
     //to test this - use something like proxifier or configure firefox for this proxy.
     Socks5Server s = new Socks5Server (IPAddress.Any, 1080);
     s.Start ();
 }