Skip to content

dimaslanjaka/php-proxy-hunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PHP Proxy Hunter

A cross-platform proxy checker and hunter toolkit built with PHP, Python, and shell scripting.

PHP Checker CI Python Checker CI

Live Servers

PHP Server Python Server


πŸš€ Features

  • Proxy checker/hunter/extractor
  • CIDR range scanner
  • HTTP/HTTPS, SOCKS4/5 support
  • Open port scanner
  • Web-based and CLI interface
  • Artisan, Nginx, and Apache support
  • Multithread & single-thread checker
  • WhatsApp Bot proxy manager (Ubuntu 20.x)
  • Cross-platform: Linux & Windows 10+
  • PHP, Python, Bash, Batch support

πŸ“¦ Requirements

Before starting, run:

git submodule update --init --recursive
sudo apt install build-essential autoconf libtool bison re2c pkg-config -y

Install SQLite 3.46

Ubuntu 18.x:

# Build from source
cd /tmp
curl -LO https://www.sqlite.org/2024/sqlite-autoconf-3460000.tar.gz
tar -xzf sqlite-autoconf-3460000.tar.gz
cd sqlite-autoconf-3460000
./configure && make && sudo make install
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LD_RUN_PATH=/usr/local/lib:$LD_RUN_PATH

# Update ld.so
if ! grep -q "/usr/local/lib" /etc/ld.so.conf; then
    echo "/usr/local/lib" | sudo tee -a /etc/ld.so.conf
fi
sudo ldconfig

# Link binary
sudo ln -sf /usr/local/bin/sqlite3 /usr/bin/sqlite3
sqlite3 --version

Ubuntu 20.x:

sudo apt update && sudo apt upgrade
sudo apt install sqlite3
sqlite3 --version

πŸ“– Setup Guides


βš™οΈ Installation

python3 requirements_install.py
yarn install
composer install

# Setup Git attributes merge driver
git config merge.resolve_hash.driver "node bin/create-file-hashes.cjs %O %A %B"

Build Project

task build

πŸ§ͺ Quickstart

sudo apt install git git-lfs -y
git clone https://github.com/dimaslanjaka/php-proxy-hunter my-project
cd my-project
git lfs install
git lfs track "*.rar"
  1. Rename .env_sample to .env
  2. Create required data files:
touch CIDR.txt CIDR-original.txt dead.txt proxies.txt proxies-all.txt proxies-http.txt proxies-socks.txt proxyChecker.txt proxyFetcherSources.txt proxyRange.txt status.txt working.txt
  1. Extract src/database.rar into src/
.
└── project/
    β”œβ”€β”€ src/
    β”‚   β”œβ”€β”€ database.sqlite
    β”‚   └── database.sqlite-whm
    β”œβ”€β”€ proxies.txt
    └── dead.txt
  1. Modify .htaccess or nginx.conf for your domain

  2. Install dependencies:

npm install -g @go-task/cli
task install-nodejs
task install-python
task install-php

⏰ Crontab Jobs

Task Schedule Command
Proxy checker Every 10 mins */10 * * * * php /path/to/proxyChecker.php > /path/to/proxyChecker.txt 2>&1
Proxy fetcher Daily 0 0 * * * php /var/www/html/proxyFetcher.php
Proxy index Daily 0 0 * * * php /var/www/html/proxies-all.php
Parallel checker Hourly at 17 mins 17 */1 * * * php /var/www/html/proxyCheckerParallel.php
Cleaner Weekly (Sunday) 0 0 * * 0 php /var/www/html/cleaner.php
DB backup Daily at midnight 0 0 * * * sqlite3 /var/www/html/src/database.sqlite .dump > /var/www/html/backups/database_backup_$(date +\%Y-\%m-\%d).sql

Crontab as specific user:

sudo crontab -u www-data -e    # Edit
sudo crontab -u www-data -l    # List
sudo crontab -u www-data .crontab.txt  # Apply from file

πŸ› οΈ Troubleshooting

Missing PHP Extension

sudo apt install php-fpm -y

Git Permissions Issue

git config core.fileMode false

Git LFS Quota Exceeded

GIT_LFS_SKIP_SMUDGE=1

Restart PHP/Nginx

systemctl restart php7.2-fpm
systemctl restart nginx

🐍 Python

python3 -m pip install -r requirements.txt

πŸ“¦ Production (Windows)

Place them in the following structure:

assets/
β”œβ”€β”€ php/
β”‚   └── php.exe
β”œβ”€β”€ chrome/
    β”œβ”€β”€ chrome.exe
    └── chromedriver.exe

Update php.ini:

extension_dir = "ext"
extension=pdo_sqlite
extension=curl
extension=openssl
extension=mbstring
extension=intl
extension=xmlrpc
extension=fileinfo
extension=sockets
extension=xsl
extension=exif
extension=gettext
extension=ftp

πŸ“„ License

This project is licensed under the GNU General Public License v3.0
Copyright (c) 2024 Dimas Lanjaka

See https://www.gnu.org/licenses/gpl-3.0.html for details.

For questions:

About

HTTP, SOCKS4, SOCKS5 proxy scrapper, hunter, checker for PHP, Python, NodeJS

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •