How SenPai Scanner works (Phase 1 and Phase 2)
mainSenPai Scanner operates in two distinct phases to find and validate usable Cloudflare IP addresses for proxy configurations (like VLESS/Trojan).
Phase 1: Finding Available IPs
In this phase, the scanner probes for reachable IPs. The behavior depends on whether a configuration URL is provided:
- Without Config URL: Performs a standard HTTP probe (e.g.,
speed.cloudflare.com, 64 KiB sample). - With Config URL: Extracts SNI, host, and path from the link. For
type=ws, it performs a WebSocket upgrade. - Random Mode: When a healthy IP is found, the scanner automatically probes nearby addresses in the same block (up to a radius of 32, maximum 12 neighbors per hit).
Phase 2: Xray Validation
The best candidates from Phase 1 are tested using an internal Xray engine. The results are displayed with the following columns:
- ENDPOINT: The validated
IP:port. - TYPE: The transport type (e.g.,
ws,grpc,xhttp, etc.). - SPEED: Download throughput in Mbps, or
n/a. - LATENCY: Time to first byte (TTFB).
- STATUS:
✓for success or✗for failure.
Note: Connection is verified via /cdn-cgi/trace. An endpoint can be successful (✓) even if SPEED is n/a. After Phase 2, pressing c copies healthy endpoints (e.g., 104.16.72.162:443) to the clipboard and saves them to ips.txt.