Documentation
¶
Index ¶
- Variables
- func AppendToFile(filepath string, content string)
- func Base64DecodeStr(message string) (string, error)
- func Base64EncodeStr(message string) string
- func BindShell(port int) error
- func Caesar(message string, shift int) (string, error)
- func Chmod(filepath string, permissions os.FileMode) error
- func ClearFile(filepath string)
- func CmdNoOut(command string)
- func CmdReturn(command string) (string, error)
- func CmdSTDOUT(command string)
- func CopyFile(source string, destination string) error
- func DeleteFile(filepath string) error
- func DoesFileExist(filepath string) bool
- func DownloadFile(source string, destination string) error
- func Error(message string)
- func GenerateName() string
- func GetAllInterfaces() []string
- func GetCurrentParentProcessID() int
- func GetCurrentProcessArch() string
- func GetCurrentProcessID() int
- func GetCurrentProcessName() string
- func GetCurrentProcessPath() (string, error)
- func GetDisplayName() (string, error)
- func GetDomainName() string
- func GetGID() (string, error)
- func GetHostname() string
- func GetInternalIP() string
- func GetOS() string
- func GetOSBuild() string
- func GetOSVersion() string
- func GetUID() (string, error)
- func GetUsername() (string, error)
- func Info(message string)
- func ListFiles(directory string) ([]string, error)
- func ListFilesInPWD() ([]string, error)
- func ListFilesInPWDR() ([]string, error)
- func ListFilesR(directory string) ([]string, error)
- func ListProcesses() (map[int]string, error)
- func ListUsers() ([]string, error)
- func MD5SumFile(filepath string) string
- func MD5SumStr(message string) string
- func MoveFile(source string, destination string) error
- func Okay(message string)
- func PSNoOut(command string)
- func PSReturn(command string) (string, error)
- func PSSTDOUT(command string)
- func PrependToFile(filepath string, content string)
- func RandomInt(min int64, max int64) int64
- func RandomStr(length int) string
- func ReadFileToSlice(filepath string) ([]string, error)
- func ReadFileToStr(filepath string) (string, error)
- func ReverseShell(rhost string, rport int) error
- func Sha1File(filepath string) string
- func Sha1Str(message string) string
- func Sha256File(filepath string) string
- func Sha256Str(message string) string
- func Sha512File(filepath string) string
- func Sha512Str(message string) string
- func Warn(message string)
- func ZipFiles(files []string, zipFileName string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Base64DecodeStr ¶
decode a string from base64 and return a string
func Base64EncodeStr ¶
encode a string to base64 and return a string
func CmdNoOut ¶
func CmdNoOut(command string)
will run a command with either `bash -c` or `cmd /C` and will provide no output
func CmdSTDOUT ¶
func CmdSTDOUT(command string)
will run a command with either `bash -c` or `cmd /C` and print output and error to STDOUT
func DoesFileExist ¶
check if a file exists. return true if it does
func DownloadFile ¶
download a file from source url to destination. if destination is left blank, will default to current directory with same filename from url
func GenerateName ¶ added in v0.1.1
func GenerateName() string
return a string equaling to "adj_noun"
func GetAllInterfaces ¶
func GetAllInterfaces() []string
return a slice of all interfaces on the computer
func GetCurrentParentProcessID ¶
func GetCurrentParentProcessID() int
get the ppid of the current process
func GetCurrentProcessArch ¶
func GetCurrentProcessArch() string
return the arch of the running process
func GetCurrentProcessName ¶
func GetCurrentProcessName() string
return the name of the current process
func GetCurrentProcessPath ¶
return the proesses path of the current process
func GetDisplayName ¶
returns the display name of the user the process is running under
func GetOSVersion ¶
func GetOSVersion() string
func GetUsername ¶
returns the username of the user the process is running under
func ListFilesInPWDR ¶
list files in current directory recursivley
func ListFilesR ¶
list files in a given directory recursivley
func ListProcesses ¶
return a map of all the current running processes
func PSNoOut ¶
func PSNoOut(command string)
runs a command with `powershell -Command "& {}"` and will provide no output
func PSSTDOUT ¶
func PSSTDOUT(command string)
runs a command with `powershell -Command "& {}"` and prints the output and error to STDOUT
func PrependToFile ¶
prepends a string to a file
func ReadFileToSlice ¶
read a file line by line, putting each line into a slice
func ReadFileToStr ¶
read a file and return a string of its content
func ReverseShell ¶
spawn a reverse shit shell. Connects to a given host over tcp. Not secure by default
Types ¶
This section is empty.