提供了fofa会员的api,如列出自己所有poc,下载poc文件, 提交poc,搜索poc
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)
}
Apache 2.0.