utils

package
v1.8.40 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Allport = "1-65535"
View Source
var Webport = "" /* 1002-byte string literal not displayed */

Functions

func FileExists

func FileExists(filename string) bool

func GetAllFile

func GetAllFile(dirPath string) (results []string, err error)

func GetCert

func GetCert(resp *req.Response) (cert string)

func GetHeaderMap

func GetHeaderMap(resp *req.Response) (headerMap map[string]string)

func GetHeaderString

func GetHeaderString(resp *req.Response) (headerString string)

func HasInt

func HasInt(datas []int, to int) bool

func HasLocalIP added in v1.8.26

func HasLocalIP(ip net.IP) bool

func HasStr

func HasStr(datas []string, to string) bool

func IsVaildIp added in v1.8.24

func IsVaildIp(str string) bool

func Md5

func Md5(s string) string

func NewReqClient

func NewReqClient(proxy string, timeout int, headers []string) *req.Client

func ParsePortsList added in v1.8.24

func ParsePortsList(data string) (map[int]struct{}, error)

func RandFromChoices

func RandFromChoices(n int, choices string) string

RandFromChoices 从choices里面随机获取

func RandLetterNumbers

func RandLetterNumbers(n int) string

RandLetterNumbers 随机大小写字母和数字

func RandLetters

func RandLetters(n int) string

RandLetters 随机小写字母

func RandLowLetterNumber

func RandLowLetterNumber(n int) string

RandLowLetterNumber 随机小写字母和数字

func ReadFile

func ReadFile(filename string) (bytes []byte, err error)

func ReadLines

func ReadLines(filename string) (lines []string, err error)

func RemoveDuplicate

func RemoveDuplicate(list []string) []string

func SaveMarshal

func SaveMarshal(filename string, results interface{}) (err error)

func SuffixStr added in v1.7.5

func SuffixStr(datas []string, to string) (string, bool)

func WriteFile

func WriteFile(filename string, data string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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