tool

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"

Variables

This section is empty.

Functions

func Base64DecodeString

func Base64DecodeString(src string) (dst string, err error)

Base64DecodeString decodes base64 string to readable string

func Base64EncodeBytes

func Base64EncodeBytes(origin []byte) (result string)

func Base64EncodeString

func Base64EncodeString(origin string, urlsafe bool) (result string)

func CFEmailDecode

func CFEmailDecode(a string) (s string, err error)

Remove cloudflare email protection

func CFScriptRedirect

func CFScriptRedirect(url string) (string, error)

Return full accessible url from a script protected url. If not a script url, return input

func CheckInList

func CheckInList(list []string, item string) bool

func ContainChineseChar

func ContainChineseChar(str string) bool

func GetCFEmailPayload

func GetCFEmailPayload(str string) string

Find email playload

func GetColly

func GetColly() *colly.Collector

func ScriptGet

func ScriptGet(js string, varname string) (string, error)

Get result var of a js script

func ScriptReplace

func ScriptReplace(js string, varname string) string

Replace location with varname and remove window

Types

type HttpClient

type HttpClient struct {
	*http.Client
}

func GetHttpClient

func GetHttpClient() *HttpClient

func (*HttpClient) Get

func (c *HttpClient) Get(url string) (resp *http.Response, err error)

func (*HttpClient) Post

func (c *HttpClient) Post(url string, body io.Reader) (resp *http.Response, err error)

type Options

type Options map[string]interface{}

Options of getters in sources

Jump to

Keyboard shortcuts

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