Skip to content

Privately check your HTTPS proxies' status without exposing them to online proxy checkers.

Notifications You must be signed in to change notification settings

levkropp/https_proxy_stdin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

https_proxy_stdin

Welcome to our repository! 🎉 Here you can find a pair of scripts designed to check the availability of a list of HTTPS proxies. The purpose of these scripts is to provide a secure and private way to check the validity of proxies without exposing them to potential exposure or theft by online proxy checking services. When you use online services to check your proxies, they often add your proxies to their free proxy lists, making them public, which is not desirable for your privacy and the longevity of the proxy.

📁 Files

format_proxies.sh 🖥️

This is a Bash script that formats a list of proxies for use with the Python 🐍 script. It reads from the standard input, trims whitespace, removes invalid lines, and converts each proxy to a Python string. The output is a Python list of strings, printed to the standard output.

This script should be used to format a list of proxies before it is passed to the Python script. For example:

cat proxies.txt | ./format_proxies.sh | python check_proxies.py

check_proxies.py 🕵️‍♀️

This is a Python script that checks a list of proxies to see if they are available. The list of proxies is read from the standard input. It uses multithreading to speed up the process 🚀.

The script accepts several command-line arguments:

  • -u or --url to specify the URL that the proxies will be tested with. By default, this is set to https://example.com.
  • -t or --threads to specify the number of threads to use for checking the proxies. By default, this is set to 16.
  • -v or --verbose to enable verbose mode, which prints out invalid proxies.
  • -vv or --very_verbose to enable very verbose mode, which prints out the start and end of each proxy check.

For example:

python check_proxies.py -u "https://test.com" -t 32 -v

This will use 32 threads to check the proxies, test the proxies with the URL https://test.com, and print out invalid proxies.

Each proxy is checked by attempting to make a GET request to a URL. If the request is successful, the proxy is considered valid ✔️.

👨‍💻 Usage

To use these scripts together, you can use a command like the following:

cat proxies.txt | ./format_proxies.sh | python check_proxies.py -u "https://test.com" -t 32 -v

This command will read a list of proxies from proxies.txt, format them using format_proxies.sh, and then check each proxy using check_proxies.py with 32 threads, the URL https://test.com, and verbose mode on. The results will be printed to the console. This process ensures that your proxies remain private and are not shared with any third-party service, ensuring their longevity and your privacy 🕶️.

📝 TODO

  1. Add URL parameter to Python script: 🎯 Implement a command-line option for the Python script (check_proxies.py) that allows the user to set the URL that will be used for proxy checking.

  2. Enhance error handling: 🚧 Improve the error handling in both scripts to provide more detailed feedback to the user when something goes wrong, such as when the input format is incorrect or the specified URL is not reachable.

  3. Support for proxy authentication: 🔐 Update the Python script to support proxies that require username/password authentication.

  4. Performance optimization: ⚡ Investigate ways to optimize the performance of the scripts, such as by improving the multithreading in the Python script or streamlining the text processing in the Bash script.

About

Privately check your HTTPS proxies' status without exposing them to online proxy checkers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published