spider

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	MaxWidth  = 1920
	MinHeight = 1080
)

Variables

This section is empty.

Functions

func ConvertCharset

func ConvertCharset(dataByte []byte) string

转化字符集

func DoFullScreenshot

func DoFullScreenshot(url, path string) bool

执行截图 --remote-debugging-port=9222 参考:https://github.com/chromedp/chromedp/issues/1131

chromedp.Evaluate(js, &height), 返回最后一行js语句的结果

func GenerateUUID

func GenerateUUID() string

生成UUID

Types

type Org

type Org struct {
	Country            string `json:"country"`             // 国家或地区
	Province           string `json:"province"`            // 省/市/自治区
	Locality           string `json:"locality"`            // 所在地
	OrganizationalUnit string `json:"organizational_unit"` // 组织单位
	Organization       string `json:"organization"`        // 组织
	CommonName         string `json:"common_name"`         // 常用名称
	StreetAddress      string `json:"street_address"`      // 街道地址
	PostalCode         string `json:"postal_code"`         // 邮政编码
}

type PocWebAppData

type PocWebAppData struct {
	Title          string `json:"title"`           //网站标题
	Link           string `json:"link"`            //网站链接
	StatusCode     string `json:"status_code"`     //状态代码
	Ip             string `json:"ip"`              //ip
	Port           string `json:"port"`            //端口
	Keywords       string `json:"keywords"`        //关键字
	Description    string `json:"description"`     //网站描述
	Classification string `json:"classification"`  //内容分类
	SensitiveWords string `json:"sensitive_words"` //敏感词
	Framework      string `json:"framework"`       //网站框架
	Header         string `json:"header"`          //头部信息
	SecondaryLinks string `json:"secondary_links"` //二级链接
	LargeImage     string `json:"large_image"`     //网站截图(大图)
	SmallImage     string `json:"small_image"`     //网站截图(封面)
	Tls            string `json:"tls"`             //tls证书
}

func CatchHTTP

func CatchHTTP(url, ip string, port int, timeOut time.Duration) (site PocWebAppData)

type TLS

type TLS struct {
	Proto                 string      `json:"proto"`                   // 协议
	Subject               Org         `json:"subject"`                 // 主题名称
	Issuer                Org         `json:"issuer"`                  // 签发者名称
	DNSNames              []string    `json:"dns_names"`               // DNS服务器名称
	CRLDistributionPoints string      `json:"crl_distribution_points"` // CRL分发点 URI
	OCSPServer            string      `json:"ocsp_server"`             // 在线证书状态协议 URI
	IssuingCertificateURL string      `json:"issuing_certificate_url"` // CA签发者 URI
	SubjectKeyId          []uint8     `json:"subject_key_id"`          // 主题密钥标志符
	AuthorityKeyId        []uint8     `json:"authority_key_id"`        // 授权密钥标志符
	SignatureAlgorithm    string      `json:"signature_algorithm"`     // 签名算法
	PublicKeyAlgorithm    string      `json:"public_key_algorithm"`    // 公钥算法
	Signature             []uint8     `json:"signature"`               // 签名
	PublicKey             interface{} `json:"public_key"`              // 公共密钥
	NotBefore             time.Time   `json:"not_before"`              // 有效期开始
	NotAfter              time.Time   `json:"not_after"`               // 有效期结束
	SerialNumber          *big.Int    `json:"serial_number"`           // 序列号
	Version               int         `json:"version"`                 // 版本
}

func (TLS) IsEmpty

func (a TLS) IsEmpty() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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