Python3 library for FOFA (https://fofa.so)
The fofa SDK written in python3 makes it easy for developers to call fofa’s API interface.
pip install pyfofa
Only Python 3.6 is supported.
import pyfofa email = 'firstname.lastname@example.org' key = 'xxxxxxx' search = pyfofa.FofaAPI(email, key) for host, ip in search.get_data('cert="baidu.com"', 1, "host,ip")['results']: print(host, ip)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.