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

Censys analyzer is failing #917

Closed
dadokkio opened this issue Dec 16, 2020 · 5 comments
Closed

Censys analyzer is failing #917

dadokkio opened this issue Dec 16, 2020 · 5 comments
Milestone

Comments

@dadokkio
Copy link
Contributor

Thanks !

Not sure if its related, but upon futher testing the Censys_1_0 analyzer failed to work as well :

Traceback (most recent call last): File "/opt/Cortex-Analyzers/analyzers/Censys/censys_analyzer.py", line 6, in <module> from censys.base import CensysNotFoundException, CensysRateLimitExceededException, CensysUnauthorizedExceptionImportError: cannot import name 'CensysNotFoundException' from 'censys.base' (/usr/local/lib/python3.8/dist-packages/censys/base.py)

Originally posted by @Aim4r in #914 (comment)

@dadokkio dadokkio added this to the 3.0.0 milestone Jan 8, 2021
@smclinden
Copy link

If you are using the public API rather than the ASM, you need to change the censys related headers in censys_analyzer.py to:

from censys.search import SearchClient, CensysCertificates, CensysData, CensysIPv4, CensysWebsites, CensysHosts
from censys.common.exceptions import CensysNotFoundException, CensysRateLimitExceededException, CensysUnauthorizedException

@D4rkw0lv3s
Copy link

If you are using the public API rather than the ASM, you need to change the censys related headers in censys_analyzer.py to:

from censys.search import SearchClient, CensysCertificates, CensysData, CensysIPv4, CensysWebsites, CensysHosts
from censys.common.exceptions import CensysNotFoundException, CensysRateLimitExceededException, CensysUnauthorizedException

@smclinden It did not work as well. It gives the following error:

Traceback (most recent call last):  File "/opt/Cortex-Analyzers/analyzers/Censys/censys_analyzer.py", line 9, in <module>    from censys.search import SearchClient, CensysCertificates, CensysData, CensysIPv4, CensysWebsites, CensysHostsModuleNotFoundError: No module named 'censys.search'

image

@smclinden
Copy link

I used the most recent (at the time of the original posting) version of censys-python from GitHub. https://github.com/censys/censys-python/

@nadouani
Copy link
Contributor

Hello folks, any news on this ? We will postpone it for 3.1.0 until a fix is available.

@nadouani nadouani modified the milestones: 3.0.0, 3.1.0 Jul 27, 2021
@dadokkio
Copy link
Contributor Author

dominiksr added a commit to dominiksr/Cortex-Analyzers that referenced this issue Aug 20, 2021
I have some problem similar to this: TheHive-Project#917. 
Its bug (dont know what this issue was closed)
This working for censys==2.0.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants