framework

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2019 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JtoolUrl          = "https://github.com/simplycubed/vulnscan-dependencies/releases/download/0.0.1-beta/jtool"
	ClassDumpZUrl     = "https://github.com/simplycubed/vulnscan-dependencies/releases/download/0.0.1-beta/class-dump-z"
	ClassDumpSwiftUrl = "https://github.com/simplycubed/vulnscan-dependencies/releases/download/0.0.1-beta/class-dump-swift"
)

Urls to download the tolls

Variables

This section is empty.

Functions

func ExtractBinPath

func ExtractBinPath(command *entities.Command) error

func Normalize

func Normalize(command entities.Command, fn func(p string, sp string) error) (err error)

Normalize tries to adapt the input folder to different cases, so all the analysis can start from a common folder structure, independently of how the user has passed the address to scan. It follows these rules:

If isSrc flag is true, the folder is treated as the main folder without further analysis.

If the file extension is zip of ipa, the folder is uncompressed into a temporary one, that
will be later be deleted. It's expected that this folder contains a .app folder as the content.

If the file extension is app, the file is moved to another temporary empty folder where the analysis
is performed. This is because we don't know if the user may have other app folders in the same route
and we wan't to treat the route as in the case where an ipa or zip is passed to the app.

If the file is a directory, we look for an app, ipa or zip file and call Normalize again with it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL