hellsgopher

package
v0.0.0-...-5725443 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64EncodeStr

func Base64EncodeStr(s string) string

encode a string to base64

func CmdReturn

func CmdReturn(command string) ([]byte, error)

will run a command with either `bash -c` or `cmd /C` and will provide no output

func CopyFile

func CopyFile(sourcePath string, destinationPath string) error

func DecryptString

func DecryptString(key []byte, secure string) (decoded string, err error)

func DoesFileExist

func DoesFileExist(path string) bool

check if a file exists returns true if file exists

func GenerateKey

func GenerateKey() ([]byte, error)

generate a 32 byte secure key

func GenerateSecureBytes

func GenerateSecureBytes(l int) ([]byte, error)

generate a secure []byte of length l

func GenerateShellCodeFromFile

func GenerateShellCodeFromFile(path string) (*bytes.Buffer, error)

func GetCurrentProcArch

func GetCurrentProcArch() string

get the arch of the current process

func NewFileWithContent

func NewFileWithContent(path string, content string) error

create a new file containing content

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL