Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArchiveMap = map[string]bool{ ".apk": true, ".bz2": true, ".bzip2": true, ".deb": true, ".gem": true, ".gz": true, ".jar": true, ".rpm": true, ".tar": true, ".tar.gz": true, ".tar.xz": true, ".tgz": true, ".upx": true, ".whl": true, ".xz": true, ".zip": true, }
Supported archive extensions.
View Source
var ErrUPXNotFound = errors.New("UPX executable not found in PATH")
Functions ¶
func GetExt ¶ added in v1.7.1
getExt returns the extension of a file path and attempts to avoid including fragments of filenames with other dots before the extension.
func IsSupportedArchive ¶ added in v1.7.1
IsSupportedArchive returns whether a path can be processed by our archive extractor. UPX files are an edge case since they may or may not even have an extension that can be referenced.
func IsValidUPX ¶ added in v1.8.0
IsValidUPX checks whether a suspected UPX-compressed file can be decompressed with UPX.
func UPXInstalled ¶ added in v1.8.0
func UPXInstalled() error
Types ¶
Click to show internal directories.
Click to hide internal directories.