|
| 1 | +using System; |
| 2 | +using System.IO; |
| 3 | +using System.Net; |
| 4 | +using System.Windows.Forms; |
| 5 | + |
| 6 | +namespace OutProxy__Scraper_ |
| 7 | +{ |
| 8 | + public partial class Form1 : Form |
| 9 | + { |
| 10 | + |
| 11 | + |
| 12 | + int MouseinX = 0, MouseinY = 0; |
| 13 | + int MouseX = 0, MouseY = 0; |
| 14 | + bool mouseDown; |
| 15 | + |
| 16 | + |
| 17 | + public Form1() |
| 18 | + { |
| 19 | + InitializeComponent(); |
| 20 | + } |
| 21 | + |
| 22 | + private void Form1_Load(object sender, EventArgs e) |
| 23 | + { |
| 24 | + |
| 25 | + } |
| 26 | + |
| 27 | + private void Label1_Click(object sender, EventArgs e) |
| 28 | + { |
| 29 | + Application.Exit(); |
| 30 | + |
| 31 | + } |
| 32 | + |
| 33 | + private void Label2_Click(object sender, EventArgs e) |
| 34 | + { |
| 35 | + this.WindowState = FormWindowState.Minimized; |
| 36 | + } |
| 37 | + |
| 38 | + private void Panel2_MouseMove(object sender, MouseEventArgs e) |
| 39 | + { |
| 40 | + if (mouseDown) |
| 41 | + { |
| 42 | + MouseX = MousePosition.X - MouseinX; |
| 43 | + MouseY = MousePosition.Y - MouseinY; |
| 44 | + |
| 45 | + this.SetDesktopLocation(MouseX, MouseY); |
| 46 | + } |
| 47 | + } |
| 48 | + |
| 49 | + private void Panel2_MouseUp(object sender, MouseEventArgs e) |
| 50 | + { |
| 51 | + mouseDown = false; |
| 52 | + |
| 53 | + } |
| 54 | + |
| 55 | + private void CheckBox1_CheckedChanged(object sender, EventArgs e) |
| 56 | + { |
| 57 | + |
| 58 | + } |
| 59 | + |
| 60 | + private void CheckBox2_CheckedChanged(object sender, EventArgs e) |
| 61 | + { |
| 62 | + |
| 63 | + } |
| 64 | + |
| 65 | + private void Button1_Click(object sender, EventArgs e) |
| 66 | + { |
| 67 | + ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3; |
| 68 | + System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; |
| 69 | + ServicePointManager.ServerCertificateValidationCallback = (snder, cert, chain, error) => true; |
| 70 | + if (CheckBox1.Checked) |
| 71 | + { |
| 72 | + Directory.CreateDirectory("Scraped Proxies"); |
| 73 | + string contents = new WebClient().DownloadString("https://api.proxyscrape.com?request=displayproxies&proxytype=http&ssl=no"); |
| 74 | + Console.WriteLine(contents); |
| 75 | + System.IO.File.WriteAllText("Scraped Proxies\\HTTP Proxies.txt", contents); |
| 76 | + MessageBox.Show("Done! "); |
| 77 | + Console.ReadLine(); |
| 78 | + } |
| 79 | + if(CheckBox2.Checked) |
| 80 | + { |
| 81 | + Directory.CreateDirectory("Scraped Proxies"); |
| 82 | + string contents = new WebClient().DownloadString("https://api.proxyscrape.com?request=displayproxies&proxytype=http&ssl=yes"); |
| 83 | + Console.WriteLine(contents); |
| 84 | + System.IO.File.WriteAllText("Scraped Proxies\\HTTP (SSL) Proxies.txt", contents); |
| 85 | + MessageBox.Show("Done! "); |
| 86 | + Console.ReadLine(); |
| 87 | + } |
| 88 | + if (CheckBox3.Checked) |
| 89 | + { |
| 90 | + Directory.CreateDirectory("Scraped Proxies"); |
| 91 | + string contents = new WebClient().DownloadString("https://api.proxyscrape.com?request=displayproxies&proxytype=socks4"); |
| 92 | + Console.WriteLine(contents); |
| 93 | + System.IO.File.WriteAllText("Scraped Proxies\\Socks 4 Proxies.txt", contents); |
| 94 | + MessageBox.Show("Done! "); |
| 95 | + Console.ReadLine(); |
| 96 | + } |
| 97 | + if(CheckBox4.Checked) |
| 98 | + { |
| 99 | + Directory.CreateDirectory("Scraped Proxies"); |
| 100 | + string contents = new WebClient().DownloadString("https://api.proxyscrape.com?request=displayproxies&proxytype=socks5"); |
| 101 | + Console.WriteLine(contents); |
| 102 | + System.IO.File.WriteAllText("Scraped Proxies\\Socks 5 Proxies.txt", contents); |
| 103 | + MessageBox.Show("Done! "); |
| 104 | + Console.ReadLine(); |
| 105 | + |
| 106 | + } |
| 107 | + |
| 108 | + else if(!CheckBox4.Checked && !CheckBox3.Checked && !CheckBox2.Checked && !CheckBox1.Checked) |
| 109 | + { |
| 110 | + MessageBox.Show("Error"); |
| 111 | + |
| 112 | + } |
| 113 | + |
| 114 | + |
| 115 | + } |
| 116 | + |
| 117 | + private void CheckBox3_CheckedChanged(object sender, EventArgs e) |
| 118 | + { |
| 119 | + |
| 120 | + } |
| 121 | + |
| 122 | + private void CheckBox4_CheckedChanged(object sender, EventArgs e) |
| 123 | + { |
| 124 | + |
| 125 | + } |
| 126 | + |
| 127 | + private void Panel1_Paint(object sender, PaintEventArgs e) |
| 128 | + { |
| 129 | + |
| 130 | + } |
| 131 | + |
| 132 | + private void Panel2_MouseDown(object sender, MouseEventArgs e) |
| 133 | + { |
| 134 | + mouseDown = true; |
| 135 | + MouseinX = MousePosition.X - Bounds.X; |
| 136 | + MouseinY = MousePosition.Y - Bounds.Y; |
| 137 | + |
| 138 | + } |
| 139 | + } |
| 140 | +} |
0 commit comments