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 error #106

Open
adrian-rt opened this issue Jul 12, 2021 · 3 comments
Open

censys error #106

adrian-rt opened this issue Jul 12, 2021 · 3 comments

Comments

@adrian-rt
Copy link

[+] Running & Checking source to be used

⍥  Shodan                           [ ✔ ]
⍥  Webarchive                       [ ✔ ]
⍥  Dnsdumpster                      [ ✔ ]
⍥  Binaryedge                       [ ✕ ]
⍥  Certsh                           [ ✔ ]
⍥  Threatminer                      [ ✔ ]
⍥  Securitytrails                   [ ✔ ]
⍥  Censys                           [ ✔ ]
⍥  Riddler                          [ ✔ ]
⍥  RapidDNS                         [ ✔ ]
⍥  AlienVault                       [ ✔ ]
⍥  UrlScan                          [ ✔ ]
⍥  FBcert                           [ ✕ ]
⍥  Threatcrowd                      [ ✔ ]
⍥  Spyse                            [ ✕ ]
⍥  Bufferover                       [ ✔ ]
⍥  Hackertarget                     [ ✔ ]
⍥  DNSDB                            [ ✕ ]
⍥  RiskIQ                           [ ✕ ]
⍥  Virustotal                       [ ✔ ]
⍥  Certspotter                      [ ✔ ]

Traceback (most recent call last):
File "/home/kali/tools/Sudomy/lib/censys/censys_subdomain_finder.py", line 3, in
import censys.certificates
ModuleNotFoundError: No module named 'censys.certificates'
jq: error (at :16): Cannot iterate over null (null)
⍥ CommonwCrawl [ ✔ ]

@rudSarkar
Copy link

rudSarkar commented Feb 25, 2022

Did you try installing censys? If not run the pip install -r requirements.txt

@momosh1r0
Copy link

momosh1r0 commented Apr 19, 2022

Hey the censys API v1 is deprecated, try this

Modify the file in lib/censys/censys_subdomain_finder.py

Adding new import

from censys.search.v1.certificates import CensysCertificates

Adding new invoke

def find_subdomains(domain, api_id, api_secret):
    try:
        censys_certificates = CensysCertificates(api_id=api_id, api_secret=api_secret)

Sudomy Censys v1 Invoke

censys_certificates = censys.certificates.CensysCertificates(api_id=api_id, api_secret=api_secret)

Censys API v1

https://github.com/censys/censys-python/blob/724c8fedec3916bc8db690336c50208a9220e45d/censys/search/v1/certificates.py#L7

Remember RUN:

pip install censys --upgrade

I hope it works :)

@r3l1c7
Copy link

r3l1c7 commented Jun 8, 2022

same issue here, I did censys upgrade.

@mr-pmillz mr-pmillz mentioned this issue Jun 11, 2022
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