code

package
v0.0.0-...-4a65f6b Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UTF8    = Charset("UTF-8")
	GB18030 = Charset("GB18030")
	GB2312  = Charset("GB2312")
	GBK     = Charset("GBK")
)

Variables

View Source
var (
	Search = flag.String("s", "", "fofa 查询")
	Shodan = flag.String("d", "", "shodan 查询")
)

Functions

func ConvertByte2String

func ConvertByte2String(byte []byte, charset Charset) string

func GetConfig

func GetConfig()

解析yml文件

func Tian

func Tian(key string)

func UnescapeUnicode

func UnescapeUnicode(raw []byte) ([]byte, error)

Types

type AB

type AB struct {
	Status int    `json:"status"`
	Info   string `json:"info"`
	Data   struct {
		Count   int `json:"count"`
		Current int `json:"current"`
		List    []struct {
			// Avatar      string `json:"avatar"`
			// CompanyID   string `json:"company_id"`
			CompanyName string `json:"company_name"`
		} `json:"list"`
	} `json:"data"`
}

type Ab

type Ab struct {
	Cpes      []string      `json:"cpes"`
	Hostnames []string      `json:"hostnames"`
	IP        string        `json:"ip"`
	Ports     []int         `json:"ports"`
	Tags      []interface{} `json:"tags"`
	Vulns     []interface{} `json:"vulns"`
}

type Are

type Are struct {
	//StateCode int    `json:"StateCode"`
	Reason string `json:"Reason"`
	Result struct {
		Owner       string `json:"Owner"`
		CompanyName string `json:"CompanyName"`
		CompanyType string `json:"CompanyType"`
		SiteLicense string `json:"SiteLicense"`
		SiteName    string `json:"SiteName"`
		MainPage    string `json:"MainPage"`
		VerifyTime  string `json:"VerifyTime"`
	} `json:"Result"`
}

type Charset

type Charset string

type Config

type Config struct {
	Fofa struct {
		Email string `yaml:"email"`
		Key   string `yaml:"key"`
	}
	Chinaz struct {
		Key string `yaml:"key"`
	}
}

type Fofa

type Fofa struct {
	Results [][]string `json:"results"`
}

type R

type R struct {
	Host   string
	Port   string
	Title  string
	Server string
}

Jump to

Keyboard shortcuts

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