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

No module named DNS.resolver #28

Closed chicagocyb3r closed 5 years ago

chicagocyb3r commented 5 years ago

After running pip install -r requirements.txt and then trying to run the script, got the following.

File "cloudflair.py", line 3, in <module> import dns_utils File "/Users/[redacted]/cloudflair/dns_utils.py", line 1, in <module> import dns.resolver ImportError: No module named dns.resolver

christophetd commented 5 years ago

Which version of Python are you running?

If you don't manage to install dnspython using pip, I'd suggest trying pip install git+https://github.com/rthalley/dnspython

chicagocyb3r commented 5 years ago

Which version of Python are you running? Python 2.7.10

If you don't manage to install dnspython using pip, I'd suggest trying pip install git+https://github.com/rthalley/dnspython I tried install DNSpython before submitting the ticket and that didn’t fix the issue.

chicagocyb3r commented 5 years ago

I also tried installing it via Anaconda instead of pip and I'm still getting the same error.

chicagocyb3r commented 5 years ago

Not sure what changed but was able to get it working.

christophetd commented 5 years ago

Amazing!