utils

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AsciiLowercase          = "abcdefghijklmnopqrstuvwxyz"
	AsciiUppercase          = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	AsciiLetters            = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
	AsciiDigits             = "0123456789"
	AsciiLowercaseAndDigits = AsciiLowercase + AsciiDigits
	AsciiUppercaseAndDigits = AsciiUppercase + AsciiDigits
	AsciiLettersAndDigits   = AsciiLetters + AsciiDigits
)

Variables

This section is empty.

Functions

func Base64Encode

func Base64Encode(braw []byte) []byte

base64 encode

func LoadMultiPoc

func LoadMultiPoc(Pocs embed.FS, pocname string) []*structs.Poc

func MD5

func MD5(str string) string

获取字符串md5

func Mmh3Hash32

func Mmh3Hash32(raw []byte) int32

Mmh3Hash32 计算 mmh3 hash

func RandomStr

func RandomStr(letterBytes string, n int) string

获取随机字符串

func ReverseString

func ReverseString(s string) string

func SelectPoc

func SelectPoc(Pocs embed.FS, pocname string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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