This script scans all 1.5 Million cloudflare IP addresses and generate a result file contains the IPs which are work with CDN
You have to install following packages
bc
curl
nmap
parallel
- clone
[~]>$ git clone https://github.com/MortezaBashsiz/CFScanner.git
- Change direcotry and make them executable
[~]>$ cd CFScanner/scripts
[~/CFScanner/scripts]> chmod +x v2ray
[~/CFScanner/scripts]> chmod +x v2ctl
- Get config.real
[~/CFScanner/scripts]>$ curl -s http://bot.sudoer.net/config.real -o ./config.real
In config file the variables are
id: UUID for user
Host: Host address which ic behind Cloudflare
path: websocket endpoint like api20
serverName: SNI
- Execute it
You must specify the parallel process count. In this example I execute it in 16 simultanious processes
[~/CFScanner/scripts]>$ bash cfFindIP.sh 8 ./config.real
- Result It will generate a file by datetime in result direcotry
[~/CFScanner]>$ ls result/
20230120-203358-result.cf
[~/CFScanner]>$
A video guide usage can be found in youtube.