Documentation
¶
Index ¶
- Constants
- func AES256GCMDecrypt(data, key []byte) ([]byte, error)
- func AES256GCMEncrypt(data []byte) ([]byte, []byte, error)
- func CheckAdmin() bool
- func Dropper(dropper []byte) error
- func ExecuteRandomCommand(commands [][]string) (string, error)
- func Exists(path string) bool
- func Find(ext string) []string
- func GetOS() string
- func GetTestIdFromExecutableName() string
- func IsAvailable(programs ...string) bool
- func Pwd(filename string) string
- func Quarantined(filename string, contents []byte) bool
- func Read(path string) []byte
- func Remove(path string) bool
- func Say(print string, ifc ...interface{})
- func Shell(args []string) (string, error)
- func Start(test fn, clean ...fn)
- func Stop(code int)
- func Unzip(zipData []byte) error
- func Wait(dur time.Duration)
- func Write(filename string, contents []byte) error
- func XorDecrypt(data []byte, key byte) []byte
- func XorEncrypt(data []byte) ([]byte, byte, error)
- type DropperPayload
Constants ¶
View Source
const ( // Errors UnexpectedTestError int = 1 TimeoutExceeded int = 102 CleanupFailed int = 103 OutOfMemory int = 137 UnexpectedExecutionError int = 256 // Not Relevant NotRelevant int = 104 InsufficientPrivileges int = 109 // Protected TestCompletedNormally int = 100 FileQuarantinedOnExtraction int = 105 NetworkConnectionBlocked int = 106 HostNotVulnerabile int = 107 ExecutionPrevented int = 126 FileQuarantinedOnExecution int = 127 // Unprotected Unprotected int = 101 TestIncorrectlyBlocked int = 110 )
Variables ¶
This section is empty.
Functions ¶
func AES256GCMDecrypt ¶
func CheckAdmin ¶
func CheckAdmin() bool
func ExecuteRandomCommand ¶
func GetTestIdFromExecutableName ¶
func GetTestIdFromExecutableName() string
func IsAvailable ¶
func Quarantined ¶
func XorDecrypt ¶
Types ¶
type DropperPayload ¶
Click to show internal directories.
Click to hide internal directories.