



$ 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 分别作为 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