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

ModuleNotFoundError: No module named 'censys' #65

Closed apprahuman closed 2 years ago

apprahuman commented 2 years ago

[*] Retrieving Cloudflare IP ranges from https://www.cloudflare.com/ips-v4 Traceback (most recent call last): File "cloudflair.py", line 7, in import censys_search File "/Users/mohamedrahuman/bugbountry/tools/wafBypass/cloudflair/censys_search.py", line 3, in from censys.common import version ModuleNotFoundError: No module named 'censys'

Getting above error when trying to run this tool. Tried to install the packages but still same error.

I am using MacOS Montery

Any tip, still googling to fix this. This tools seems cool, really want it work for me, thanks

christophetd commented 2 years ago

Hello,

Did you install the dependencies?

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# When you're done:
deactivate
apprahuman commented 2 years ago

I have run source venv/bin/activate then it' works. Thanks