h4rdy / fofa-sdk

Python3 library for FOFA (https://fofa.so)

Home Page:https://github.com/h4rdy/fofa-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 = 'with.h4rdy@gmail.com'
key = 'xxxxxxx'
search = pyfofa.FofaAPI(email, key)
for host, ip in search.get_data('cert="baidu.com"', 1, "host,ip")['results']:
    print(host, ip)

About

Python3 library for FOFA (https://fofa.so)

https://github.com/h4rdy/fofa-sdk

License:MIT License


Languages

Language:Python 100.0%