Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BinFileInfo ¶
func (BinFileInfo) GetMD5 ¶
func (f BinFileInfo) GetMD5() string
type ExtractedFile ¶
type ExtractedFile struct { /////////////////// 这部分对应known file table表/////////////////// // 文件名 Name string // 文件所在的目录 Dir string // flag Flag uint32 // 该文件的重要性。如果重要性为0,在分析的时候直接忽略。 Rating int // 这个文件出现的次数 Count int // 文件的描述信息。 Description string // 搜索版本信息时的关键字 VersionSearchKey string // 过滤出版本信息的正则表达式 VersionSearchRegular string // 版本信息 Version Version // 该文件的md5值。 Md5 string }
文件的结构体,描述文件的信息
func (*ExtractedFile) GetBinaryVersion ¶
func (exfile *ExtractedFile) GetBinaryVersion() error
Get the version information of the binary program file.
type Report ¶
type Report struct { Binfile BinFileInfo KernelVersion string KernelInfo string Kernelvulnerablities []Vulnerablity Programvulnerablities []Vulnerablity }
最终报告结构体
type Version ¶
type Vulnerablity ¶
type Vulnerablity struct { // 漏洞编号,一般为CVE或者CNVD等 ID string // 影响的内核的版本号 AffectedVersion string // 漏洞类型 Type string // 漏洞描述 Description string // 漏洞严重程度,1-10评分,1不严重,10最严重 Severity int // 修复建议 FixSuggestion string // 攻击层。 // kernel // shell // file system // user applicaion LayerOfAttack string // 攻击目标 TargetOfAttack string }
func (*Vulnerablity) IsAffected ¶
func (v *Vulnerablity) IsAffected(ver Version) bool
Click to show internal directories.
Click to hide internal directories.