censys / censys-recon-ng

recon-ng modules for Censys
Apache License 2.0
36 stars 16 forks source link

Dependency required: 'me 'CensysIPv4' from 'censys.search' #5

Open thehappydinoa opened 2 years ago

thehappydinoa commented 2 years ago

Hello,

I have no intention of make cross posting, I've continue a topic in recon-ng (#149) with this issue because I'm not sure if this problem is with recon-ng, python-censys or python 3.10. I'm running Recon-ng in Archlinux. All the dependencies installed with pacman, and recon-ng compiled from github. Python-censys version 2.1.2.

This is the output of the modules that use censys:

Module 'recon/netblocks-hosts/censys_netblock' disabled. Dependency required: 'me 'CensysIPv4' from 'censys.search' (/usr/lib/python3.10/site-packages/censys/search/__init__.py)'.

Module 'recon/netblocks-companies/censys_netblock_company' disabled. Dependency required: 'me 'CensysIPv4' from 'censys.search' (/usr/lib/python3.10/site-packages/censys/search/__init__.py)'.

Module 'recon/hosts-hosts/censys_hostname' disabled. Dependency required: 'me 'CensysIPv4' from 'censys.search' (/usr/lib/python3.10/site-packages/censys/search/__init__.py)'.

Module 'recon/hosts-hosts/censys_query' disabled. Dependency required: 'me 'CensysIPv4' from 'censys.search' (/usr/lib/python3.10/site-packages/censys/search/__init__.py)'.

Module 'recon/domains-hosts/censys_domain' disabled. Dependency required: 'me 'CensysIPv4' from 'censys.search' (/usr/lib/python3.10/site-packages/censys/search/__init__.py)'.

Module 'recon/companies-hosts/censys_org' disabled. Dependency required: 'me 'CensysIPv4' from 'censys.search' (/usr/lib/python3.10/site-packages/censys/search/__init__.py)'.

Module 'recon/companies-contacts/censys_email_address' disabled. Dependency required: 'me 'CensysIPv4' from 'censys.search' (/usr/lib/python3.10/site-packages/censys/search/__init__.py)'.

Module 'recon/domains-companies/censys_companies' disabled. Dependency required: 'me 'CensysIPv4' from 'censys.search' (/usr/lib/python3.10/site-packages/censys/search/__init__.py)'.

Thanks

Originally posted by @saltasatelites in https://github.com/censys/censys-recon-ng/issues/4#issuecomment-1021526108

RafatKhandaker commented 2 years ago

Umm you can check to see if "me" and "CensusIpv4" are available pip3 installations on Python 3. Just Google it to see if it's a Python dependency.

If it is then just run the pip3 install me. Or whateber command and run the module again.

saltasatelites commented 2 years ago

That was the first I tried, but I didn't find nothing. Instead the manual of censys python https://censys-python.readthedocs.io/_/downloads/en/v1.0.1/pdf/ in page 5 says "Python class objects must be initialized for each resource index (IPv4 addresses, Websites, and Certificates). • CensysIPv4 • CensysWebsites • CensysCertificates

I've my api and secret key installed, and I'm playing around with this, but my python knowledge aren't the best..

RafatKhandaker commented 2 years ago

Okay, I got you now. Most likely, this will take a code change. The file in /usr/lib/python3.10/site-packages/censys/search/init.py , the api call needs to be updated to retrieve the objects for "me & CensusIpv4," I don't have the time to look at it currently but if anyone can pick up from this post to update that, it may not be that much work. Worst case scenario, they would have to check the API called from that script and test on the browser to see the output from the API call template and then map the objects on python.

thehappydinoa commented 2 years ago

Hi @saltasatelites and @RafatKhandaker,

We need to switch the module to use the CensysHosts index that implements the new Censys Search v2 API. This requires a complete rewrite and will take some time. Thank you for your patience.

saltasatelites commented 2 years ago

Ok, thanks for your answer.

thehappydinoa commented 2 years ago

@saltasatelites I have upgraded the modules to fix this error, I have also submitted a PR to the recon-ng-marketplace. You are however able to upgrade using the install.sh found in this project. I will close this issue when it is merged in.

saltasatelites commented 2 years ago

Ok, thanks. Any important info I tell you.

reevesy1 commented 1 year ago

still has that error for me

[!] Module 'recon/domains-companies/censys_companies' disabled. Dependency required: 'me 'CensysIPv4' from 'censys.search' (/usr/lib/python3/dist-packages/censys/search/init.py)'.

[!] Module 'recon/netblocks-companies/censys_netblock_company' disabled. Dependency required: 'me 'CensysIPv4' from 'censys.search' (/usr/lib/python3/dist-packages/censys/search/init.py)'.

a few more like those ones and then this one

[!] Module 'recon/companies-domains/censys_subdomains' disabled. Dependency required: 'me 'CensysCertificates' from 'censys.search' (/usr/lib/python3/dist-packages/censys/search/init.py)'.

i followed instructions here and no change.

karlmax1342 commented 2 months ago

[!] Module 'recon/companies-domains/censys_subdomains' disabled. Dependency required: 'me 'CensysCertificates' from 'censys.search' (/home/user/.local/lib/python3.11/site-packages/censys/search/init.py)'.

was a fix ever found for this?