
A script to extract subdomains/emails for a given domain using SSL/TLS certificate dataset on Censys




$ git clone [email protected]:yamakira/censys-enumeration.git
$ pip install -r requirements.txt
Get Censys API ID and Censys API secret by creating a account on https://censys.io
Add Censys API ID and Censys API secret as CENSYS_API_ID & CENSYS_API_SECRET respectively to the OS environment variables. On Linux you can use a command similar to following to do this
$ export CENSYS_API_SECRET="iySd1n0l2JLnHTMisbFHzxClFuE0"
$ python censys_enumeration.py --help
Usage: censys_enumeration.py [OPTIONS] FILE
Options:
--verbose Verbose output
--subdomains / --no-subdomains Enable/Disable subdomain enumeration
--emails / --no-emails Enable/Disable email enumeration
--help Show this message and exit.
$ python censys_enumeration.py domains.txt
$ python censys_enumeration.py --no-emails domains.txt
$ python censys_enumeration.py --no-sudomains domains.txt
$ python censys_enumeration.py --verbose domains.txt
$ python censys_enumeration.py --verbose --outfile results.json domains.txt