Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Latest commit

 

History

History
38 lines (30 loc) · 857 Bytes

README.md

File metadata and controls

38 lines (30 loc) · 857 Bytes

fofa-api : fofa vip api

Overview GoDoc Build Status

提供了fofa会员的api,如列出自己所有poc,下载poc文件, 提交poc,搜索poc

Install

go get github.com/Earth-Online/fofa-api

例子

package main

import (
	  "fmt"
      "github.com/Earth-Online/fofa-api/client"
)


func main(){
	var email = "test@qq.com"
    var token = "123456"
    user := client.NewUser(email, token)
    err := user.Me()
    if err != nil{
      panic(err)  
    } 
    fmt.Print(user.Email)
    fmt.Print(user.UserName)
    resp, err := user.GetPoc()
    fmt.Print(resp)
}

License

Apache 2.0.