A simple Python tool to scan and identify valid CDN IP + SNI (Server Name Indication) pairs for Cloudflare, Fastly, Gcore. && Netlify on separate code bad netlify
Features
- Single Domain & Batch Scanning: Scan one domain or a list of domains for valid CDN IP/SNI pairs.
- Random IP Scanning: Generate and test random IPs from CDN ranges.
- Optimized CDN Ranges: Built-in ranges for Cloudflare, Gcore, Fastly (can be updated automatically).
- Multi-Protocol Checks: Tests both HTTPS and HTTP connectivity.
- Cloudflare Or Any CDN Multi-Port Scanner
- Xray/V2Ray Compatibility Tests: Verifies found pairs for Xray/V2Ray support.
- Performance Metrics: SSL handshake time, ping, HTTP response time.
- Export Results: Save to JSON, TXT, CSV, Excel, and generate HTML reports.
- Configurable: Edit DNS servers, output directory, debug/verbose modes, and more.
- Interactive CLI Menu: Easy-to-use terminal interface.
- Extra Xray Client Parser Editor in xrayparser.html (for now it dont support xhttp extra params u need to add them manually)
-
Install Python 3.7+
- Windows: Download from python.org
(Check "Add Python to PATH" during install) - Linux/macOS:
# Debian/Ubuntu sudo apt update && sudo apt install python3 python3-pip # macOS (Homebrew) brew install python
- Windows: Download from python.org
-
Clone the Repository
git clone https://github.com/jeet8200/CDN-SNI-Scanner-PLUS-for-V2Ray-xray.git cd CDN-SNI-Scanner-PLUS-for-V2Ray-xray -
Install Dependencies
#manualy
pip install colorama dnspython urllib3 requests openpyxl
Run the scanner:
python cdn_scanner_plus.py1: for updating ip lists its better to use vpn but for rest of the way vpn off is smart choice.
2 FOR XRAY TEST FIRST SCAN SOME IPS THAN CHECK THAT IPS ON XRAY TEST THAN GENERATE HTML
REST ARE self explanatory
Menu Options:
[1] Scan single domain
[2] Scan random IPs
[3] Scan from file
[4] View results
[5] Toggle debug
[6] Test known CDNs
[7] Deep CDN Test
[8] Update CDN IP ranges # 4 better search its better be up to date with vpn
[9] Generate HTML report
[10] Export to CSV/Excel || in ("cdn_scanner_plus-3.py") [10] Cloudflare Or Any CDN Multi-Port Scanner not sure about the usecase Yet.
[11] Configuration
[12] Test Xray/V2Ray compatibility
Scan a single domain:
> python cdn_scanner_plus.py
> Select option 1
> Enter domain: example.com
Batch scan from file:
- Put domains in
domains.txt(one per line) - Choose option 3 in the menu
Test random Cloudflare IPs:
> Select option 2
> Choose Cloudflare
> Enter number of IPs: 100
> Enter SNI: example.com
- Edit
config.inito change DNS servers, rate limits, or add custom CDN IP ranges.
- Results saved in
results/valid_pairs.json(JSON) andresults/valid_pairs.txt(TXT)
- "Python not found": Make sure Python is in your PATH or use
python3 - SSL errors: Normal — tool ignores SSL verification
- Slow scans: Lower
rate_limit_delayinconfig.ini
MIT License — Free for personal Use
⭐ Star this repo if you find it useful! ⭐