92
◾
Ethical Hacking and Penetration Testing Guide
Method 2: Subdomain Trick
Most people don’t configure CloudFlare properly. Their main domain would have a CloudFlare IP
address, but the subdomains will point to the real IP address.
For example:
attack-secure.com—Pointing to 173.245.61.19
Cpanel.attack-secure.com—Pointing to the real IP address 199.47.222.125
ftp.attack-secure.com—Pointing to the real IP address 199.47.222.125
forums.attack-secure.com—Pointing to the real IP address 198.199.81.93
In the same way, we can use other subdomains to find the real IP address of CloudFlare.
Alternatively, you find scripts and tools online that would utilize the same trick to figure out the
real IP. There are also automated scripts utilizing the same attack vector. One such script I found
was coded in PHP. Here is the output:
Dostları ilə paylaş: