
주어진 도메인에 대해 Censys의 SSL/TLS 인증서 데이터세트를 사용하여 서브도메인/이메일을 추출하는 스크립트




$ git clone [email protected]:yamakira/censys-enumeration.git
$ pip install -r requirements.txt
https://censys.io에서 계정을 만들어 Censys API ID와 Censys API secret을 받으세요
Censys API ID와 Censys API secret을 각각 OS 환경 변수 CENSYS_API_ID 및 CENSYS_API_SECRET로 추가하세요. Linux에서는 다음 명령과 유사한 명령을 사용하여 이 작업을 수행할 수 있습니다
$ 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