Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thehappydinoa opened this issue Jan 25, 2022 · 8 comments
Open

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

thehappydinoa opened this issue Jan 25, 2022 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@thehappydinoa
Copy link
Member

thehappydinoa commented Jan 25, 2022

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 #4 (comment)

@RafatKhandaker
Copy link

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
Copy link

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
Copy link

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
Copy link
Member Author

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
Copy link

Ok, thanks for your answer.

@thehappydinoa
Copy link
Member Author

@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.

@thehappydinoa thehappydinoa self-assigned this Jan 31, 2022
@thehappydinoa thehappydinoa added the bug Something isn't working label Jan 31, 2022
@saltasatelites
Copy link

Ok, thanks. Any important info I tell you.

@reevesy1
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

4 participants