tool

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15"

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 ProxyURL

func ProxyURL() func(*http.Request) (*url.URL, error)

配置代理模式

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