Skip to content

0x1Jar/proxyChecker

Repository files navigation

Proxy Checker Tools

██████╗ ██████╗  ██████╗ ██╗  ██╗██╗   ██╗     ██████╗██╗  ██╗███████╗ ██████╗██╗  ██╗███████╗██████╗ 
██╔══██╗██╔══██╗██╔═══██╗╚██╗██╔╝╚██╗ ██╔╝    ██╔════╝██║  ██║██╔════╝██╔════╝██║ ██╔╝██╔════╝██╔══██╗
██████╔╝██████╔╝██║   ██║ ╚███╔╝  ╚████╔╝     ██║     ███████║█████╗  ██║     █████╔╝ █████╗  ██████╔╝
██╔═══╝ ██╔══██╗██║   ██║ ██╔██╗   ╚██╔╝      ██║     ██╔══██║██╔══╝  ██║     ██╔═██╗ ██╔══╝  ██╔══██╗
██║     ██║  ██║╚██████╔╝██╔╝ ██╗   ██║       ╚██████╗██║  ██║███████╗╚██████╗██║  ██╗███████╗██║  ██║
╚═╝     ╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═╝   ╚═╝        ╚═════╝╚═╝  ╚═╝╚══════╝ ╚═════╝╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝
                                            
                                        By 0x1Jar

A collection of Python scripts for checking and validating HTTP and SOCKS5 proxies.

Features

  • Support for both HTTP and SOCKS5 proxy checking
  • Concurrent proxy testing using thread pools
  • Multiple input file formats supported (TXT, CSV, JSON)
  • Detailed output with response times
  • Saves working proxies to separate files
  • Progress tracking during checks

Requirements

pysocks==1.7.1
requests==2.31.0

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/proxy-checker.git
cd proxy-checker
  1. Install required packages:
pip install -r requirements.txt

Usage

There are two ways to use this tool:

1. Using the Main Interface (Recommended)

python main.py

This provides an interactive menu where you can:

  1. Choose proxy type:
    • Option 1: HTTP/HTTPS Proxies
    • Option 2: SOCKS5 Proxies
    • Option 3: Exit
  2. Enter the path to your proxy file when prompted

2. Using Individual Scripts

For HTTP/HTTPS Proxies:

██╗  ██╗████████╗████████╗██████╗     ██████╗ ██████╗  ██████╗ ██╗  ██╗██╗   ██╗
██║  ██║╚══██╔══╝╚══██╔══╝██╔══██╗    ██╔══██╗██╔══██╗██╔═══██╗╚██╗██╔╝╚██╗ ██╔╝
███████║   ██║      ██║   ██████╔╝    ██████╔╝██████╔╝██║   ██║ ╚███╔╝  ╚████╔╝ 
██╔══██║   ██║      ██║   ██╔═══╝     ██╔═══╝ ██╔══██╗██║   ██║ ██╔██╗   ╚██╔╝  
██║  ██║   ██║      ██║   ██║         ██║     ██║  ██║╚██████╔╝██╔╝ ██╗   ██║   
╚═╝  ╚═╝   ╚═╝      ╚═╝   ╚═╝         ╚═╝     ╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═╝   ╚═╝   
python HTTPproxy.py <proxy_file>

Supported formats:

For SOCKS5 Proxies:

███████╗ ██████╗  ██████╗██╗  ██╗███████╗    ██████╗ ██████╗  ██████╗ ██╗  ██╗██╗   ██╗
██╔════╝██╔═══██╗██╔════╝██║ ██╔╝██╔════╝    ██╔══██╗██╔══██╗██╔═══██╗╚██╗██╔╝╚██╗ ██╔╝
███████╗██║   ██║██║     █████╔╝ ███████╗    ██████╔╝██████╔╝██║   ██║ ╚███╔╝  ╚████╔╝ 
╚════██║██║   ██║██║     ██╔═██╗ ╚════██║    ██╔═══╝ ██╔══██╗██║   ██║ ██╔██╗   ╚██╔╝  
███████║╚██████╔╝╚██████╗██║  ██╗███████║    ██║     ██║  ██║╚██████╔╝██╔╝ ██╗   ██║   
╚══════╝ ╚═════╝  ╚═════╝╚═╝  ╚═╝╚══════╝    ╚═╝     ╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═╝   ╚═╝   
python socks5.py <proxy_file>

Supported format:

  • ip:port (e.g., 172.64.151.116:1080)

Input File Formats

The tools support multiple input file formats:

  1. Text File (.txt):
ip:port
ip:port
  1. CSV File (.csv):
ip:port,other_data
ip:port,other_data
  1. JSON File (.json) - HTTP proxy checker only:
{
    "proxies": [
        "ip:port",
        "http://ip:port"
    ]
}

Output

Both tools will:

  1. Display real-time progress during checking
  2. Show detailed results for each proxy
  3. Save working proxies to:
    • aliveproxy_http.txt for HTTP proxies
    • aliveproxy.txt for SOCKS5 proxies
  4. Provide a summary of active and inactive proxies

Features Details

HTTP Proxy Checker

  • Tests proxies against httpbin.org
  • Verifies proxy functionality by checking returned IP
  • Supports both HTTP and HTTPS protocols
  • Handles various proxy string formats

SOCKS5 Proxy Checker

  • Tests proxies against Google's DNS (8.8.8.8)
  • Measures response time for each proxy
  • Handles connection timeouts gracefully
  • Simple and efficient checking mechanism

Contributing

Feel free to submit issues, fork the repository, and create pull requests for any improvements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A collection of Python scripts for checking and validating HTTP and SOCKS5 proxies.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages