Sign in to follow this  
0xwarning

Learn C# [Proxy Rotation] [For Crackers/Checkers]

Recommended Posts

Proxy Rotation [Learn C#]

 

Basic Proxy Rotation

 

[hide]

 

Step 1

 

Make C# Console Application

 

Step 2

 

First Lets Define Some Vars

       private static List Proxies = new List();

       private static Queue proxyQueue = new Queue();

       private static string proxies = "proxies.txt";

Step 3

 

Load The Proxies

(Personally I Would not use regex for proxy loading but oh well as who really likes regex lmao)

               Program.Proxies = new List(from tx in File.ReadLines(Program.proxies)
                                                          where Regex.Match(tx, "\\d{1,3}(\\.\\d{1,3}){3}:\\d{1,5}").Success
                                                          select tx);
               foreach (string item2 in Program.Proxies)
               {
                   Program.proxyQueue.Enqueue(item2);
               }

Step 4

 

Put the load proxies into a try loop to avoid errors.

           try
           {
               Program.Proxies = new List(from tx in File.ReadLines(Program.proxies)
                                                          where Regex.Match(tx, "\\d{1,3}(\\.\\d{1,3}){3}:\\d{1,5}").Success
                                                          select tx);
               foreach (string item2 in Program.Proxies)
               {
                   Program.proxyQueue.Enqueue(item2);
               }
           }
           catch
           {
               Console.Clear();
               Console.WriteLine("Failed to load proxies!(Place proxies.txt next to the .exe)", Color.Red);
               Console.ReadKey();
               Environment.Exit(1);
           }

Step 5

 

See If We Have Loaded Some Proxies

           Console.WriteLine("Loaded " + Program.Proxies.Count + " Proxies");
           Console.Read();

Step 6

 

Make A Loop for the proxies

 for (; ; )
           {
                   foreach (string item in Program.Proxies)
                   {
                       Program.proxyQueue.Enqueue(item);
                   }
               string text;
               do
               {
                   text = Program.proxyQueue.Dequeue();
               }
               while (string.IsNullOrEmpty(text));
               Console.WriteLine(text);
           }

Step 7

 

Import Into Your Checker and set the Proxy

               httpRequest.Proxy = HttpProxyClient.Parse(text);

Step 8

 

Thats It

Remember to Either put this into a function and have it return the proxy.

Or In the for loop add your checker code there

 

[/hide]

Share this post


Link to post
Share on other sites

i wish u had same example for python :)

Share this post


Link to post
Share on other sites

Proxy Rotation [Learn C#]

 

Basic Proxy Rotation

 

 

 

ty i have a good idea what i can with that ty

Share this post


Link to post
Share on other sites

Proxy Rotation [Learn C#]

 

Basic Proxy Rotation

 

 

 

Noice! :fiesta:

Share this post


Link to post
Share on other sites

Rotación Proxy [Aprender C #]

 

Rotación Proxy Básica

 

 

 

Es bueno el Tutorial solo que un poco confunzo ya lo que es el codigo para agregar al form1 en mi caso

Share this post


Link to post
Share on other sites

Sauce Whaile thats prob. nice

Share this post


Link to post
Share on other sites

always been better at configss then checkers. lets see

Share this post


Link to post
Share on other sites

thanks for sharing this .. :thinking: :thinking: :thinking:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this