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.48k stars 345 forks source link

python cloudflair.py error #48

Closed ImLearningHowToCode closed 2 years ago

ImLearningHowToCode commented 3 years ago

$ python cloudflair.py --help Traceback (most recent call last): File "cloudflair.py", line 3, in import dns_utils File "/home/kali/CloudFlair/dns_utils.py", line 1, in import dns.resolver ImportError: No module named dns.resolver

I followed every step and everything. It is not working help pls

christophetd commented 2 years ago

Can you share the exact commands you ran? Did you install the dependencies via pip install -r requirements.txt?

Juancollado2003 commented 2 years ago

Many issues are resolved just by doing:

sudo apt-get install libxml2-dev libxslt-dev python-dev

christophetd commented 2 years ago

I updated the instructions in the README. Can you try the following and confirm it works fine?

cd cloudflair
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python cloudflair.py google.com
mrsnax commented 2 years ago

Its work but got warning

cloudflair.py:35: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if len(cert_fingerprints) is 0:
cloudflair.py:44: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if len(hosts) is 0:
cloudflair.py:140: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if len(origins) is 0:
[*] Retrieving Cloudflare IP ranges from https://www.cloudflare.com/ips-v4
[*] The target appears to be behind CloudFlare.
[*] Looking for certificates matching "garudaku.com" using Censys
[*] 0 certificates matching "garudaku.com" found.

I updated the instructions in the README. Can you try the following and confirm it works fine?

cd cloudflair
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python cloudflair.py google.com
christophetd commented 2 years ago

Fixed by #49