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

Earth-Online/fofa-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages