Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[Tutorial] Finding a websites IP behind Cloudflare/Reverse Proxy

Lots of sites hide their real server's IP using a service such as Cloudflare
In this tutorial I am going to present you a few ways, in order to find out the IP, even if the website uses some kind of portection

Let it be said that all these methods rely on poor configuration, so it will not work for sites that know how to configure their infrastructure

1. Web Server Errors

Web Server can return error codes, such as 404 or 403
In some cases the web server will reveal it's real IP, when returning an error of that type

[Image: show-server-info1.png]

This picture presents such a misconfiguration
If the site's owner does not set the web server hostname to the domain or even better, creates custom error messages, this kind of leakage could be prevented

2. Application Errors

Causing an error in an application, might cause the server to leak it's IP address
If the error reporting is not set to off and the website has kind of the settings it had in development still running in production, you can play around a bit and try to cause an error
When it works, you will get something like "unexpected parameter ' in application.php at xx.xxx.x.xxx"
I wanted to showcase this with a real life example I had saved for my tutorial, but cannot seem to find it right now, will edit should I find it

3. Historical DNS data

One of the most promising methods if you ask me that will at least point you in a good direction
The dnstrails feature of securitytrails will help your with this
It shows every DNS records that have ever been published for this domain
Lots of admins tend to first assign their domain to a single server, because "the site is not known yet"

However, this is a big mistake
The data can later be found and thus the real IP of the server

I would love to see some input on this and maybe methods you use for this
This Thread will probably be edited some time in the future to provide an example for #2 or to expand it by more methods that come to my mind
All my answers/posts are for educational purposes only. I am not in any way responsible for the actions you perform with the acquired knowledge.

[Image: ZjBA6fR.gif]
here's something to check out, good article though

https://dnsdumpster.com
(Dec 29, 2020 10:43 AM)drneed Wrote:  here's something to check out, good article though

https://dnsdumpster.com

Yes, DNSdumpster is also a great site, which shows all kinds of IPs that have to do with the site, thanks for adding it!
All my answers/posts are for educational purposes only. I am not in any way responsible for the actions you perform with the acquired knowledge.

[Image: ZjBA6fR.gif]


Possibly Related Threads...
Thread / Author Replies Views Last Post
by TheCyb3rAlphaFeb 27, 2025 05:13 AM 6 903 Feb 27, 2025 05:13 AM
Last Post: RoundLettuce
by TheCyb3rAlphaJul 2, 2023 09:45 AM 7 620 Jul 2, 2023 09:45 AM
Last Post: SIM-5382664
by guardianJan 9, 2022 09:56 AM 27 966 Jan 9, 2022 09:56 AM
Last Post: SkardeveosPALAIA