Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 457 Bytes

README.rst

File metadata and controls

23 lines (16 loc) · 457 Bytes

FOFA SDK

The fofa SDK written in python3 makes it easy for developers to call fofa's API interface.

Installation

pip install pyfofa

Only Python 3.6 is supported.

Example

import pyfofa
email = '[email protected]'
key = 'xxxxxxx'
search = pyfofa.FofaAPI(email, key)
for host, ip in search.get_data('cert="baidu.com"', 1, "host,ip")['results']:
    print(host, ip)