Documentation ¶
Index ¶
- func AllowedName(name string) error
- func ByteCountBinary(b int64) string
- func ChmodR(path string, filePerm, dirPerm os.FileMode) error
- func Contains[T comparable](elements []T, v T) bool
- func CopyFile(src string, dst string) error
- func DeflateBuf(data []byte) []byte
- func Keys[M ~map[K]V, K comparable, V any](m M) []K
- func PreludeDecrypt(data []byte, key []byte) []byte
- func PreludeEncrypt(data []byte, key []byte, iv []byte) []byte
- func RC4EncryptUnsafe(data []byte, key []byte) []byte
- func ReadFileFromTarGz(tarGzFile string, tarPath string) ([]byte, error)
- func RemoveElement(slice []uint64, value uint64) []uint64
- func ResolvePath(in string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedName ¶
func ByteCountBinary ¶
ByteCountBinary - Pretty print byte size
func Contains ¶
func Contains[T comparable](elements []T, v T) bool
func DeflateBuf ¶
DeflateBuf - Deflate a buffer using BestCompression (9)
func Keys ¶
func Keys[M ~map[K]V, K comparable, V any](m M) []K
From the x/exp source code - gets a slice of keys for a map
func PreludeEncrypt ¶
PreludeEncrypt the results
func RC4EncryptUnsafe ¶
RC4 encryption - Cryptographically insecure! Added for stage-listener shellcode obfuscation Dont use for anything else!
func ReadFileFromTarGz ¶
ReadFileFromTarGz - Read a file from a tar.gz file in-memory
func RemoveElement ¶
func ResolvePath ¶
ResolvePath - Resolve a path from an assumed root path
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
basex
Package basex provides fast base encoding / decoding of any given alphabet using bitcoin style leading zero compression.
|
Package basex provides fast base encoding / decoding of any given alphabet using bitcoin style leading zero compression. |
Package lib leakbuf.go is stolen form ss
|
Package lib leakbuf.go is stolen form ss |
Package minisign implements the minisign signature scheme.
|
Package minisign implements the minisign signature scheme. |
Click to show internal directories.
Click to hide internal directories.