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

SyntaxWarning error #42

Closed GiangTieuDau closed 3 years ago

GiangTieuDau commented 3 years ago

Hi Chris,

I am using the latest Kali 2020.4 My current python2 is 2.7.18 and python3 is 3.8.6U* I did run the exact command as the instruction But when I run the command "python cloudflair.py " And the error comes

File "cloudflair.py", line 3, in import dns_utils File "/home/kali/Desktop/cloudflair/dns_utils.py", line 1, in import dns.resolver ImportError: No module named 'dns'

Then I tried to run the command "python3 cloudflair.py " It works but still got error

image

I am wondering is SyntaxWarning error in line 46, 55, 157 affect the process as well as the result? How to fix it?

christophetd commented 3 years ago

You likely forgot to install requirements: pip install -r requirements.txt

Will keep the issue open to track the syntax error

christophetd commented 3 years ago

Should be fixed by #43