Documentation
¶
Index ¶
- Variables
- func CopyFile(src, dst string) (err error)
- func CreateAnalysisDir(targetAppPath string)
- func Description() string
- func ExactMatch(haystack string, needle string) []string
- func FindFilesInDir(needles []string, haystack string) []string
- func GetDroidManifest(abs string) map[string]string
- func GetDroidPermissions()
- func GetProjectRootDir() string
- func GetRuleFiles(partialOrFullName string) []string
- func GetWorkingDir() string
- func IsCommandAvailable(name string) bool
- func PrepBinaryForAnal(path string)
- func RegexMatch(haystack string, regularExp string) []string
- func Retry(attempts int, sleep time.Duration, f func() error) (err error)
- func Unzip(src, dest string) error
- func WriteResultsToFile(file string, data map[string][]model.RuleResult)
Constants ¶
This section is empty.
Variables ¶
View Source
var AnalysisBinPath string
View Source
var AnalysisDir string
View Source
var UnzippedAnalBinPath string
Functions ¶
func CreateAnalysisDir ¶
func CreateAnalysisDir(targetAppPath string)
func ExactMatch ¶
ExactMatch searches for a string in a string, returns matches
func FindFilesInDir ¶
func GetDroidManifest ¶
GetDroidManifest parses the target binaries AndroidManifest.xml file
func GetDroidPermissions ¶
func GetDroidPermissions()
func GetProjectRootDir ¶
func GetProjectRootDir() string
GetProjectRootDir returns the project root dir of MobProtID
func GetRuleFiles ¶
func GetWorkingDir ¶
func GetWorkingDir() string
GetWorkingDir - More info on Getwd() https://golang.org/src/os/getwd.go
func IsCommandAvailable ¶
IsCommandAvailable checks if a command is exists in shell
func PrepBinaryForAnal ¶
func PrepBinaryForAnal(path string)
func RegexMatch ¶
RegexMatch searching a string using a regex, returns matches
func WriteResultsToFile ¶
func WriteResultsToFile(file string, data map[string][]model.RuleResult)
WriteResultsToFile writes parsed rule results to file for downstream consumption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.