Documentation
¶
Overview ¶
Package fofa implements some fofa-api utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
Mode string `json:"mode"`
Error bool `json:"error"`
Query string `json:"query"`
Page int `json:"page"`
Size int `json:"size"`
Results [][]string `json:"results"`
}
Data fofa result
type Fofa ¶
Fofa a fofa client can be used to make queries
func (*Fofa) QueryAsJSON ¶
QueryAsJSON make a fofa query and return json data as result echo 'domain="nosec.org"' | base64 - | xargs -I{} curl "https://fofa.so/api/v1/search/all?email=${FOFA_EMAIL}&key=${FOFA_KEY}&qbase64={}" Default: host title ip domain port country city
func (*Fofa) QueryAsObject ¶
QueryAsObject make a fofa query and return object data as result echo 'domain="nosec.org"' | base64 - | xargs -I{} curl "https://fofa.so/api/v1/search/all?email=${FOFA_EMAIL}&key=${FOFA_KEY}&qbase64={}"
type SingleData ¶
type SingleData struct {
Mode string `json:"mode"`
Error bool `json:"error"`
Query string `json:"query"`
Page int `json:"page"`
Size int `json:"size"`
Results []string `json:"results"`
}
SingleData single results data
type User ¶
type User struct {
Email string `json:"email"`
UserName string `json:"username"`
Fcoin int `json:"fcoin"`
Vip bool `json:"isvip"`
VipLevel int `json:"vip_level"`
IsVerified bool `json:"is_verified"`
Avatar string `json:"avatar"`
Err string `json:"errmsg,omitempty"`
}
User struct for fofa user