types

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 1 Imported by: 1 module, 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

Overview

  • Package types @Author: zhizhuo @IDE:GoLand @File: options.go @Date: 2025/3/10 下午2:39*
  • Package types @Author: zhizhuo @IDE:GoLand @File: server.go @Date: 2025/4/4 上午10:25*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertInfo

type CertInfo struct {
	Subject               CertName `json:"subject"`                           // 证书主体
	Issuer                CertName `json:"issuer"`                            // 颁发者
	NotBefore             string   `json:"not_before"`                        // 生效时间(UTC)
	NotAfter              string   `json:"not_after"`                         // 到期时间(UTC)
	Valid                 bool     `json:"valid"`                             // 当前是否有效(UTC)
	SerialNumber          string   `json:"serial_number"`                     // 证书序列号
	PublicKeyAlgorithm    string   `json:"public_key_algorithm"`              // 公钥算法
	PublicKey             string   `json:"public_key"`                        // 公钥指纹(SubjectPublicKeyInfo 的 SHA1 十六进制)
	SignatureAlgorithm    string   `json:"signature_algorithm"`               // 签名算法
	Version               int      `json:"version"`                           // 证书版本
	OCSPServer            []string `json:"ocsp_server,omitempty"`             // OCSP 服务地址
	DNSNames              []string `json:"dns_names,omitempty"`               // DNS 名称(SAN)
	EmailAddresses        []string `json:"email_addresses,omitempty"`         // 邮件地址(SAN)
	IPAddresses           []string `json:"ip_addresses,omitempty"`            // IP 地址(SAN)
	URIs                  []string `json:"uris,omitempty"`                    // URI(SAN)
	CRLDistributionPoints []string `json:"crl_distribution_points,omitempty"` // CRL 分发点
	IssuingCertificateURL []string `json:"issuing_certificate_url,omitempty"` // 中间/根证书下载地址
}

CertInfo 证书信息(用于 JSON 与输出层传递)

type CertName

type CertName struct {
	CommonName         string   `json:"common_name,omitempty"`         // 主体通用名(CN)
	Organization       []string `json:"organization,omitempty"`        // 组织名称(O)
	OrganizationalUnit []string `json:"organizational_unit,omitempty"` // 组织单位(OU)
	Country            []string `json:"country,omitempty"`             // 国家代码(C)
	Province           []string `json:"province,omitempty"`            // 省/州(ST)
	Locality           []string `json:"locality,omitempty"`            // 城市/地区(L)
	StreetAddress      []string `json:"street_address,omitempty"`      // 街道地址
	PostalCode         []string `json:"postal_code,omitempty"`         // 邮政编码
	SerialNumber       string   `json:"serial_number_dn,omitempty"`    // DN 中的序列号
}

CertName 标准化名称结构(CN/O/OU/C/ST/L/Street/PostalCode/SerialNumber 等)

type CmdOptions

type CmdOptions struct {
	Target      goflags.StringSlice // 测试目标
	TargetsFile string              // 测试目标文件
	Threads     int                 // 并发线程数
	Output      string              // 输出文件路径
	PocOptions  YamlFingerType      // POC yaml文件配置
	Timeout     int                 // 超时时间,默认5秒
	Proxy       string              // 代理地址
	Debug       bool                // 设置debug模式
	NoFileLog   bool                // 是否禁用文件日志,仅输出到控制台
	JSONOutput  bool                // 是否使用JSON格式输出结果
	SockOutput  string              // socket文件输出路径,启用后会以JSON格式输出到socket文件
	RuleThreads int                 // 指纹规则线程数
}

CmdOptions 命令行选项结构体

type ReverseConfig

type ReverseConfig struct {
	CeyeAPIKey string
	CeyeDomain string
	JNDIHost   string
	LDAPPort   string
	APIPort    string
}

ReverseConfig 反连查询配置。配置按值属于扫描实例,不包含可共享的可变引用。

type ServerInfo

type ServerInfo struct {
	OriginalServer string `json:"original_server"` // 原始服务器信息
	ServerType     string `json:"server_type"`     // 服务器类型
	Version        string `json:"version"`         // 版本号
}

ServerInfo 定义服务器信息的结构体

func EmptyServerInfo

func EmptyServerInfo() *ServerInfo

EmptyServerInfo 返回空的ServerInfo对象

func NewServerInfo

func NewServerInfo(originalServer, serverType, version string) *ServerInfo

NewServerInfo 创建新的ServerInfo对象

type YamlFingerType

type YamlFingerType struct {
	PocFile string // POC文件路径
	PocYaml string // 单个POC yaml文件
}

YamlFingerType 指纹文件类型

Jump to

Keyboard shortcuts

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