This repository contains a batch script to automate the process of downloading, extracting, and testing a list of IP addresses through an HTTP proxy setup. The script performs HTTP checks on each IP and, if successful, further tests them using Xray for proxy compatibility.
- Automated Download: Downloads a ZIP file containing lists of IPs from
https://zip.baipiao.eu.org
. - Extraction: Extracts files from the ZIP archive to a
temp
folder. - HTTP and Proxy Testing: Performs HTTP checks on each IP, and if the IP responds as expected, further tests it with Xray for proxy compatibility.
- CSV Logging: Saves results to
results.csv
for easy analysis. - Temporary File Management: Organizes temporary files in a
temp
folder and cleans up after execution.
- Windows OS
- Xray installed and configured in the
bin
folder. - curl installed and accessible from the command line.
- 7-Zip for ZIP file extraction.
- Clone the repository:
git clone https://github.com/XRaySup/ProxyIP.git cd ProxyIP
- Place the
xray.exe
file in thebin
folder. - Ensure
curl
is installed and accessible from the command line. - Ensure
7z.exe
is installed and accessible (e.g., add it to the systemPATH
).
Run the batch script from the command line:
script.bat
- The script downloads a ZIP file of IPs, extracts files with names ending in
-443.txt
, and performs tests on each IP. - For each IP:
- Checks if it responds with the expected message on HTTP.
- If successful, tests the IP through Xray to see if it provides a
204 No Content
response. - Logs each result in
results.csv
with the IP address and response code.
- The results of each IP test are saved in this CSV file, with columns for the IP address and response code.