Documentation ¶
Index ¶
- func ConvertIP(bytes []byte) string
- func PrintStruct(i interface{})
- func Struct2Json(i interface{}) string
- type DNS
- type DNSAnswer
- type DNSInfo
- type HTTPRequest
- func (r *HTTPRequest) GetMethod() string
- func (r *HTTPRequest) GetRequestData() string
- func (r *HTTPRequest) GetResponeData() string
- func (r *HTTPRequest) GetURL() string
- func (r *HTTPRequest) SetMethod(mtd string)
- func (r *HTTPRequest) SetRequestData(rd string)
- func (r *HTTPRequest) SetResponeData(rd string)
- func (r *HTTPRequest) SetURL(url string)
- type MailAccount
- type MailContent
- type MailInfos
- type Parser
- type TransmissionData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPRequest ¶
type HTTPRequest struct { URL string `json:"URL,omitempty"` // url,不包含 :// Method string `json:"Method,omitempty"` // GET POST 等请求方法 RequestData string `json:"RequestData,omitempty"` // 请求数据,包含请求方法、头部、请求体 ResponeData string `json:"ResponeData,omitempty"` // 响应数据 }
HTTPRequest 存放一次HTTP请求,及其数据。
func (*HTTPRequest) GetRequestData ¶
func (r *HTTPRequest) GetRequestData() string
GetRequestData get
func (*HTTPRequest) GetResponeData ¶
func (r *HTTPRequest) GetResponeData() string
GetResponeData get
func (*HTTPRequest) SetRequestData ¶
func (r *HTTPRequest) SetRequestData(rd string)
SetResponeData set
func (*HTTPRequest) SetResponeData ¶
func (r *HTTPRequest) SetResponeData(rd string)
SetResponeContentType set
type MailAccount ¶
MailAccount 邮箱账号
type MailContent ¶
type MailContent struct { From string `json:"from,omitempty"` To string `json:"to,omitempty"` Subject string `json:"subject,omitempty"` Content string `json:"content,omitempty"` }
MailContent 邮件内容
type MailInfos ¶
type MailInfos struct { Accounts []MailAccount `json:"accounts,omitempty"` Contents []MailContent `json:"contents,omitempty"` }
MailInfos 邮箱信息
type Parser ¶
type Parser struct { HTTPRequests []HTTPRequest DNSInfos []DNSInfo MailInfos MailInfos TDatas []TransmissionData //存放每次交互传输的数据,不包括已解析的数据,如HTTP、DNS、SMTP。 IPs []string // 存放pcap中,出现的所有IP。 // contains filtered or unexported fields }
Parser Pcap解析器
func (*Parser) ParseBytes ¶
ParseBytes 解析目标pcap bytes 格式
Click to show internal directories.
Click to hide internal directories.