Documentation ¶
Index ¶
- Variables
- func AskForConfirmation() bool
- func Assert(err error)
- func CamelCase(src string) string
- func GetHashType(hash string) (string, error)
- func GetSHA256(name string) string
- func Getopt(name, dfault string) string
- func RemoveDuplicates(elements []string) []string
- func RunCommand(ctx context.Context, cmd string, args ...string) (string, error)
- func SliceContainsString(a string, list []string) bool
- func StringInSlice(a string, list []string) bool
- func Unzip(archive, target string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var AppHelpTemplate = `` /* 464-byte string literal not displayed */
AppHelpTemplate is a default malice plugin help template
Functions ¶
func AskForConfirmation ¶
func AskForConfirmation() bool
AskForConfirmation prompts user for yes/no response
func GetHashType ¶
GetHashType returns the hash type (md5, sha1, sha256, sha512)
func RemoveDuplicates ¶
RemoveDuplicates removes duplicate items from a list
func RunCommand ¶
RunCommand runs cmd on file
func SliceContainsString ¶
SliceContainsString returns if slice contains substring
func StringInSlice ¶
StringInSlice returns whether or not a string exists in a slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.