screetsec / Sudomy

Sudomy is a subdomain enumeration tool to collect subdomains and analyzing domains performing automated reconnaissance (recon) for bug hunting / pentesting
https://github.com/Screetsec/
MIT License
2.01k stars 381 forks source link

censys error #106

Open adrian-rt opened 3 years ago

adrian-rt commented 3 years ago

[+] 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 commented 2 years ago

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

momosh1r0 commented 2 years ago

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

https://github.com/screetsec/Sudomy/blob/2d5b67e430585b1c5440fef02f78a6635baca84b/lib/lib/censys/censys_subdomain_finder.py#L14

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 commented 2 years ago

same issue here, I did censys upgrade.