Documentation ¶
Index ¶
- Variables
- func ConvertIP(bytes []byte) string
- func PrintStruct(i interface{})
- func Struct2Json(i interface{}) string
- func TypeList(dex *DexFile, offset int) string
- type APK
- type ClassData
- type CodeItem
- type DNS
- type DNSAnswer
- type DNSInfo
- type DexClass
- type DexFile
- type ELFParser
- type Field
- type FieldID
- type HTTPRequest
- func (r *HTTPRequest) GetData() string
- func (r *HTTPRequest) GetMethod() string
- func (r *HTTPRequest) GetResponeContentType() string
- func (r *HTTPRequest) GetURL() string
- func (r *HTTPRequest) GetUserAgent() string
- func (r *HTTPRequest) SetData(Data string)
- func (r *HTTPRequest) SetMethod(mtd string)
- func (r *HTTPRequest) SetResponeContentType(ct string)
- func (r *HTTPRequest) SetURL(url string)
- func (r *HTTPRequest) SetUserAgent(ua string)
- type MailAccount
- type MailContent
- type MailInfos
- type Method
- type MethodID
- type PcapParser
- type Reader
- type SizeOff
- type TransmissionData
Constants ¶
This section is empty.
Variables ¶
View Source
var NoIndex = 0xFFFFFFFF
NoIndex 偏移过长
Functions ¶
Types ¶
type APK ¶
type APK struct {
// contains filtered or unexported fields
}
APK 定义APK的结构
func (*APK) GetAndroidManifest ¶
GetAndroidManifest 获取清单内容
func (*APK) GetDexClass ¶ added in v0.6.0
GetDexClass get dexclass
func (*APK) GetDexStrings ¶ added in v0.6.0
GetDexStrings 获得字符串
type ClassData ¶
type ClassData struct {
// contains filtered or unexported fields
}
ClassData DexClass 中的数据,包含字段、方法。
func NewClassData ¶
NewClassData 初始化ClassData
type DexFile ¶
type DexFile struct {
// contains filtered or unexported fields
}
DexFile Dex文件结构
type ELFParser ¶ added in v0.6.0
type ELFParser struct { File *elf.File ImportedLibraries []string ImportedSymbols []elf.ImportedSymbol }
ELFParser ELF信息
type HTTPRequest ¶ added in v0.4.0
type HTTPRequest struct { URL string `json:"URL,omitempty"` // url,不包含 :// Method string `json:"Method,omitempty"` // GET POST UserAgent string `json:"UserAgent,omitempty"` ResponeContentType string `json:"ResponeContentType,omitempty"` // 返回的数据格式 Data string `json:"Data,omitempty"` // HTTP数据,包括请求和返回。 }
HTTPRequest 存放一次HTTP请求,及其数据。
func (*HTTPRequest) GetMethod ¶ added in v0.5.3
func (r *HTTPRequest) GetMethod() string
GetMethod get
func (*HTTPRequest) GetResponeContentType ¶ added in v0.5.3
func (r *HTTPRequest) GetResponeContentType() string
GetResponeContentType get
func (*HTTPRequest) GetUserAgent ¶ added in v0.5.3
func (r *HTTPRequest) GetUserAgent() string
GetUserAgent get
func (*HTTPRequest) SetData ¶ added in v0.4.0
func (r *HTTPRequest) SetData(Data string)
SetData set
func (*HTTPRequest) SetMethod ¶ added in v0.4.0
func (r *HTTPRequest) SetMethod(mtd string)
SetMethod set
func (*HTTPRequest) SetResponeContentType ¶ added in v0.4.0
func (r *HTTPRequest) SetResponeContentType(ct string)
SetResponeContentType set
func (*HTTPRequest) SetUserAgent ¶ added in v0.4.0
func (r *HTTPRequest) SetUserAgent(ua string)
SetUserAgent set
type MailAccount ¶ added in v0.3.0
MailAccount 邮箱账号
type MailContent ¶ added in v0.3.0
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 ¶ added in v0.3.0
type MailInfos struct { Accounts []MailAccount `json:"Accounts,omitempty"` Contents []MailContent `json:"contents,omitempty"` }
MailInfos 邮箱信息
type MethodID ¶
type MethodID struct {
// contains filtered or unexported fields
}
MethodID MethodID结构
func NewMethodID ¶ added in v0.6.0
NewMethodID new method id
type PcapParser ¶ added in v0.3.2
type PcapParser struct { HTTPRequests []HTTPRequest DNSInfos []DNSInfo MailInfos MailInfos TDatas []TransmissionData //存放每次交互传输的数据,不包括已解析的数据,如HTTP、DNS、SMTP。 IPs []string // 存放pcap中,出现的所有IP。 // contains filtered or unexported fields }
PcapParser Pcap解析器
func (*PcapParser) Parse ¶ added in v0.3.2
func (p *PcapParser) Parse(path string) error
Parse 解析目标pcap文件
func (*PcapParser) ParseBytes ¶ added in v0.3.7
func (p *PcapParser) ParseBytes(bs []byte) error
ParseBytes 解析目标pcap bytes 格式
func (*PcapParser) ParseReader ¶ added in v0.3.7
func (p *PcapParser) ParseReader(src io.Reader) error
ParseReader 解析目标pcap reader
Click to show internal directories.
Click to hide internal directories.