Skip to content
forked from fofapro/fofa-py

fofa pro的sdk,python语言版本

License

Notifications You must be signed in to change notification settings

xiajibaxie/fofa-py

 
 

Repository files navigation

FOFA Python SDK Documentation

An easy-to-use wrapper for FOFA API written in python. Currently support Python 3.7+

FOFA is a search engine for Internet-connected devices. FOFA API helps developers integrate FOFA data easily in their own projects.

Documentaion

Usage

# -*- coding: utf-8 -*-
import fofa

if __name__ == "__main__":
    email, key = ('test@test.com', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')  
    client = fofa.Client(email, key)               
    query_str = 'header="thinkphp" || header="think_template"'                           
    data = client.search(query_str, size=100, page=1, fields="ip,city") 
    for ip, city in data["results"]:
        print("%s,%s" % (ip, city))          

License

This software is licensed under MIT License

Copyright (C) 2023 Fofa, Inc.

About

fofa pro的sdk,python语言版本

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.1%
  • Batchfile 2.1%
  • Makefile 1.7%
  • Shell 0.1%