Documentation
¶
Index ¶
Constants ¶
const ( TypeUnknown = iota TypeELF TypePE )
FiltType consts
const Version = "1.2.7"
Version is the package version.
Variables ¶
This section is empty.
Functions ¶
func ELFExports ¶
ELFExports will read the provided filename and, if it's an ELF, it will return a list of functions that are exported.
Types ¶
type ExportTable ¶
type ExportTable struct {
AddressOfFuncs uint32
AddressOfNameOrdinals uint32
AddressOfNames uint32
Base uint32
Characteristics uint32
Checksum uint32
MajorVersion uint16
MinorVersion uint16
Name uint32
NumberOfFuncs uint32
NumberOfNames uint32
// contains filtered or unexported fields
}
ExportTable is a struct containing relevant export data for a PE file.
func GetExportTable ¶
func GetExportTable(pf *pe.File) (*ExportTable, error)
GetExportTable will return the export table for the provided PE file.
func (*ExportTable) Names ¶
func (et *ExportTable) Names() []string
Names will return a list of exported function names.
type FileType ¶ added in v1.1.0
type FileType uint32
FileType is an enum
func NaiveFileType ¶ added in v1.1.0
NaiveFileType does some very naive checks to determine file type.
type Import ¶
Import is a generic struct that contains the imported function name and the library that is expected to contain it.
func ELFImports ¶
ELFImports will read the provided filename and, if it's an ELF, it will return a list of functions that are imported.