fofa

package
v1.3.3-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fofa

type Fofa struct {
	*http.Client
	// contains filtered or unexported fields
}

Fofa a fofa client can be used to make queries

func NewFofaClient

func NewFofaClient(email, key string) *Fofa

func (*Fofa) Get

func (ff *Fofa) Get(urlStr string, val url.Values) ([]byte, error)

func (*Fofa) QueryAsJSON

func (ff *Fofa) QueryAsJSON(page, pageSize int, args ...string) ([]byte, error)

func (*Fofa) UserInfo

func (ff *Fofa) UserInfo() (user *User, err error)

type User

type User struct {
	Email          string `json:"email,omitempty"`
	Fcoin          int    `json:"fcoin,omitempty"`
	Vip            bool   `json:"bool,omitempty"`
	RemainApiQuery int64  `json:"remain_api_query,omitempty"`
	Avatar         string `json:"avatar,omitempty"`
	Err            string `json:"errmsg,omitempty"`
}

User struct for fofa user

func (*User) String

func (u *User) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL