Documentation ¶
Index ¶
- Variables
- func ArrayToString(arr []string) string
- func Base64Encode(braw []byte) []byte
- func BytesToString(b []byte) string
- func CheckCdn(target string) (cdn bool, value string, itemType string, dnsData *retryabledns.DNSData)
- func CheckErrs(err error) bool
- func Cidr2IPs(cidr string) []string
- func Contains(stringA, stringB string) bool
- func CvtLines(s string) []string
- func DecodeBase64(i string) ([]byte, error)
- func DecodeHex(i string) ([]byte, error)
- func Difference(slice1, slice2 []string) []string
- func EncodeBase64(i interface{}) string
- func Exists(path string) bool
- func ExtractParameters(u, method string, requestBody string, header map[string]string) []string
- func FaviconHash(data []byte) int32
- func FirstToUpper(str string) string
- func FormatTarget(target string) (targets []string)
- func GetReqParameters(method, contentType string, target *url.URL, body []byte) ([]string, error)
- func GetResParameters(contentType string, body []byte) ([]string, error)
- func Hostname(target string) string
- func InCaseFoldSlice(slice []string, word string) bool
- func InMap(target string, strs map[string]string) bool
- func InSlice(slice []string, word string) bool
- func InSliceCaseFold(target string, strs []string) bool
- func InsertInto(s string, interval int, sep rune) string
- func IntInSlice(i int, slice []int) bool
- func IsDir(path string) bool
- func IsFile(path string) bool
- func IsIPv6(ip string) bool
- func IsInnerIP(ip string) bool
- func MD5(str string) string
- func MapToJson(param http.Header) string
- func MatchAnyOfRegexp(regexps []string, match string) (bool, string)
- func Mmh3Hash32(raw []byte) int32
- func RandStr() string
- func RandomFromChoices(n int, choices string) string
- func RandomLetterNumbers(n int) string
- func RandomLetters(n int) string
- func RandomLowLetterNumber(n int) string
- func RandomNumber(n int, m int) int
- func RandomString(n int) string
- func RandomUpper(s string) string
- func ReadFileAsLine(path string) ([]string, error)
- func RegexpStr(patterns []string, str string) bool
- func RemoveDuplicateElement(strs []string) []string
- func RemoveQuotation(str []string) []string
- func RemoveQuotationMarks(str string) string
- func ReverseString(s string) string
- func SimpleUniqueId(u string) string
- func SliceInCaseFold(target string, strs []string) bool
- func StringToBytes(s string) []byte
- func StructToJsonString(item interface{}) string
- func StructureIps(ipsTmp []string, num int) (ips []string)
- func ToLower(a []string) []string
- func ToStringSlice(actual interface{}) ([]string, error)
- func ToUpper(a []string) []string
- func Trim(s string) string
- func UUID() string
- func UniqueId(req *proxy.Request) string
- func WriteFile(path string, data []byte) error
- type UserPass
Constants ¶
This section is empty.
Variables ¶
var ParamFilter = []string{"submit", "reset", "button", "image", "hidden", "csrf_token", "user_token", "userToken"}
ParamFilter 过滤一些参数不进行处理 https://github.com/yhy0/Jie/issues/4 TODO 待增加
Functions ¶
func Base64Encode ¶
func BytesToString ¶
func DecodeBase64 ¶ added in v0.3.1
func Difference ¶
func EncodeBase64 ¶ added in v0.3.1
func EncodeBase64(i interface{}) string
func ExtractParameters ¶ added in v1.0.0
ExtractParameters 提取参数,这一部分就不在 pkg/task/task.go 里进行了,哪里需要哪里调用
func FaviconHash ¶
func FormatTarget ¶
func GetReqParameters ¶ added in v1.1.1
func GetResParameters ¶ added in v1.1.1
func InCaseFoldSlice ¶ added in v1.1.1
func InSliceCaseFold ¶ added in v1.0.0
InSliceCaseFold 这个是数组中每个元素范围大, target 只是一个子串 比如 target: a 在 []string{"asd", "1"} 中
func IntInSlice ¶
func RandomFromChoices ¶ added in v0.3.1
RandomFromChoices 从choices里面随机获取
func RandomLetterNumbers ¶ added in v0.3.1
RandomLetterNumbers 随机大小写字母和数字
func RandomLowLetterNumber ¶ added in v0.3.1
RandomLowLetterNumber 随机小写字母和数字
func RandomUpper ¶
func ReadFileAsLine ¶
ReadFileAsLine 读取文件并返回一个字符串切片
func RemoveDuplicateElement ¶ added in v0.3.1
RemoveDuplicateElement 数组去重
func RemoveQuotation ¶ added in v1.0.0
RemoveQuotation 为什么 go 正则中不能只提取 " ' 中的内容,而是连带着 " ' 一起提取出来,使用 matches := ipRex.FindAllStringSubmatch(body, -1) 也要循环matches取 matche[1]
func RemoveQuotationMarks ¶ added in v1.0.0
func SimpleUniqueId ¶ added in v1.0.0
SimpleUniqueId 只对 http://testphp.vulnweb.com/redir.php?r=https://beautybeer.blogspot.com/ 这种简单的进行获取唯一 id
func SliceInCaseFold ¶ added in v1.0.0
SliceInCaseFold 判断一个字符串是否在另一个字符数组里面,存在返回true target 中是否包含 strs 中的某一个 这个是 target 范围大, element只是一个子串
func StringToBytes ¶
func StructToJsonString ¶
func StructToJsonString(item interface{}) string
StructToJsonString 将结构体输出位 json 字符