




$ 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