christophetd / CloudFlair

🔎 Find origin servers of websites behind CloudFlare by using Internet-wide scan data from Censys.
https://blog.christophetd.fr/bypassing-cloudflare-using-internet-wide-scan-data/
2.58k stars 358 forks source link

Throws exception when page content isn't retrieved #19

Closed eur0pa closed 5 years ago

eur0pa commented 6 years ago

https://github.com/christophetd/CloudFlair/blob/65df78f63188880513a9792a7749e140ea203216/cloudflair.py#L127

This needs to be enclosed in a try / except block to avoid throwing an uncaught exception when the page content isn't retrieved for some reason.

christophetd commented 6 years ago

Good point. PRs are welcome, otherwise I'll try to take care as soon as I have a moment.

Thanks for reporting!

christophetd commented 5 years ago

Fixed with #26