Documentation
¶
Index ¶
- func CheckIfFileExists(filepath string) error
- func CommonRendering(data embed.FS, pathtorender string, i interface{}) (string, error)
- func ContainsStringInSlice(s []string, toFind string) bool
- func ContainsStringInSliceIgnoreCase(s []string, toFind string) bool
- func CreateDir(path string) error
- func CreatePayloadFile(name, ext, source string) (*os.File, error)
- func GetCurrentDate() string
- func GetDebugFunction() string
- func GetDebugImports() []string
- func GetDebugInstance() string
- func GetEnglishWords() []string
- func GetExportNames(extension string) string
- func GetField(v interface{}, field string) string
- func GetGolangByteArray(data []byte) string
- func GetMD5Hash(payload []byte) string
- func GetProperGolangArch(arch string) (string, error)
- func GetSHA1Hash(payload []byte) string
- func GetSHA256Hash(payload []byte) string
- func HasField(v interface{}, name string) bool
- func RandomInt(start, end int) int
- func RandomString(n int) string
- func RandomStringOnlyChar(n int) string
- func RemoveDuplicateStr(strSlice []string) []string
- func RemoveExt(filename string) string
- func ReverseSlice(ss []interface{})
- func SetDebug(source interface{}, fieldName string, debugValue bool)
- func SetField(source interface{}, fieldName string, fieldValue string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfFileExists ¶
func CommonRendering ¶
func ContainsStringInSlice ¶
func CreatePayloadFile ¶
TOD: Rework that function
func GetCurrentDate ¶
func GetCurrentDate() string
func GetDebugFunction ¶
func GetDebugFunction() string
func GetDebugInstance ¶
func GetDebugInstance() string
///DEBUG Inspired by https://github.com/optiv/ScareCrow/blob/8809d4544f12e7080138fa3747be3bd080616304/Loader/Loader.go#L575
func GetEnglishWords ¶
func GetEnglishWords() []string
func GetExportNames ¶
func GetGolangByteArray ¶
func GetMD5Hash ¶
func GetProperGolangArch ¶
func GetSHA1Hash ¶
func GetSHA256Hash ¶
func RandomString ¶
func RandomStringOnlyChar ¶
func RemoveDuplicateStr ¶
func ReverseSlice ¶
func ReverseSlice(ss []interface{})
https://stackoverflow.com/questions/34816489/reverse-slice-of-strings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.