utils

package
v0.0.0-...-a98a27f Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckProxy

func CheckProxy(proxyUrl string)

func CheckURL

func CheckURL(url string) bool

func FileCreateAndWrite

func FileCreateAndWrite(filename string, s string)

func FileExits

func FileExits(file string) bool

func FileRead

func FileRead(filename string) []byte

func FileWrite

func FileWrite(filename string, s string)

func HttpRequest

func HttpRequest(u string, header map[string]string, proxyUrl string) (*http.Response, bool)

func IsIntInArray

func IsIntInArray(n int, arr []int) bool

func IsSimilarBytes

func IsSimilarBytes(arr1 []byte, arr2 []byte, diff int) bool

func LoadDictOne

func LoadDictOne(filename string) []string

func LoadPayloadsFromFile

func LoadPayloadsFromFile(filename string) []string

func MatchStr

func MatchStr(substr string, str string) bool

func MinInt2

func MinInt2(a int, b int) int

func NewHttpClient

func NewHttpClient(proxyUrl string) *http.Client

func OutputToFile

func OutputToFile(filename string, s string)

func RandomStr

func RandomStr(length int) string

func ReadHttpBody

func ReadHttpBody(r *http.Response) (resp []byte)

func StatusParse

func StatusParse(s string) (statuslist []int)

func StringArrayCut

func StringArrayCut(array []string, num int) [][]string

func StringToInt

func StringToInt(v string) int

func Sum

func Sum(a int, b int) int

func UrlEncode

func UrlEncode(s string) string

func UrlParse

func UrlParse(s string) (url string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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