Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



   1087

C# Proxy Tool (Update the links to what ever API/Github repo you please)

by sfouh123asdA - 16 August, 2021 - 07:15 PM
This post is by a banned member (sfouh123asdA) - Unhide
835
Posts
106
Threads
4 Years of service
#1
(This post was last modified: 04 August, 2024 - 08:21 PM by sfouh123asdA. Edited 1 time in total.)
Enjoy, wrote this for someone & just decided to make it public. Nothing special, add your API's or github repos as you please.
 
Code:
 
using System;
using System.Net;

namespace proxytoolforant
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "Proxy Tool";
            Console.Write("[1] HTTP\n");
            Console.Write("[2] HTTPS\n");
            Console.Write("[3] SOCKS4\n");
            Console.Write("[4] SOCKS5\n\n");
            Console.Write("Choose an option: ");
            string proxy_type = Console.ReadLine();

            if (proxy_type.Contains("1"))
            {
                WebClient HTTPProxy = new WebClient();
                HTTPProxy.DownloadFile("https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/http.txt", "http.txt");
                HTTPProxy.DownloadFile("", "");
                Environment.Exit(0);
            }

            if (proxy_type.Contains("2"))
            {
                WebClient HTTPSProxy = new WebClient();
                HTTPSProxy.DownloadFile("https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/https.txt", "https.txt");
                Environment.Exit(0);
            }

            if (proxy_type.Contains("3"))
            {
                WebClient SOCKS4PROXY = new WebClient();
                SOCKS4PROXY.DownloadFile("https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/socks4.txt", "socks4.txt");
                Environment.Exit(0);
            }

            if (proxy_type.Contains("4"))
            {
                WebClient SOCKS5PROXY = new WebClient();
                SOCKS5PROXY.DownloadFile("https://raw.githubusercontent.com/ShiftyTR/Proxy-List/master/socks5.txt", "socks5.txt");
                Environment.Exit(0);
            }
        }
    }
}


DON'T FORGET TO LIKE!
This post is by a banned member (sfouh123asdA) - Unhide
835
Posts
106
Threads
4 Years of service
#2
This is a bump

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)