Documentation
¶
Index ¶
- Variables
- func Base64Decode(str string) string
- func Base64DecodeBytes(str string) []byte
- func Base64Encode(str string) string
- func Base64EncodeBytes(data []byte) string
- func BasicAuth(username, password string) string
- func CheckProxyHttp(proxy string) bool
- func CheckProxySocks4(proxy string) bool
- func CheckProxySocks5(proxy string) bool
- func GetUserPass(i int) string
- func LeftParse(str string, leftDelimiter string) string
- func LoadCombos(file string) (int, error)
- func MD5Hash(str string) string
- func MD5HashBytes(data []byte) string
- func MidParse(str string, leftDelimiter string, rightDelimiter string) string
- func RandomUserAgent() string
- func RightParse(str string, rightDelimiter string) string
- func SHA1Hash(str string) string
- func SHA1HashBytes(data []byte) string
- func SHA256Hash(str string) string
- func SHA256HashBytes(data []byte) string
- func SetConsoleTitle(title string) error
- func StartUI()
- type Account
- type Proxy
- type Worker
Constants ¶
This section is empty.
Variables ¶
var ( AccountRegex = "^[a-zA-Z0-9]{3,20}:[a-zA-Z0-9]{3,20}$" ProxyRegex = `((http|https|socks4|socks5):\/\/)?([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?` HitsNumber int = 0 FailsNumber int = 0 CPM int = 0 Retries int = 0 AccountList []Account HitList []*Account ProxyList []*Proxy OnCheck = make(chan int) BotCount int = 50 WaitGroup = sync.WaitGroup{} Semaphore chan int )
All global variables are defined here and can be accessed from any package.
Functions ¶
func Base64Decode ¶
Base64Decode function to decode base64 string to string
func Base64DecodeBytes ¶
Base64DecodeBytes function to decode base64 string to byte array
func Base64Encode ¶
Base64Encode function to encode string to base64
func Base64EncodeBytes ¶
Base64EncodeBytes function to encode byte array to base64
func CheckProxyHttp ¶
CheckProxyHttp checks if a proxy is alive and working by pinging it and checking the response code of the response it gets back. If the response code is 200, the proxy is alive and working.
func CheckProxySocks4 ¶
CheckProxySocks4 checks if a proxy is alive and working by pinging it and checking the response code of the response it gets back. If the response code is 200, the proxy is alive and working.
func CheckProxySocks5 ¶
CheckProxySocks5 checks if a proxy is alive and working by pinging it and checking the response code of the response it gets back. If the response code is 200, the proxy is alive and working.
func GetUserPass ¶
GetUserPass returns the username and password of an account in the list
func LoadCombos ¶
LoadCombos is a function to load each line of a file into a map of usernames and passwords defined by the Combo struct
func MD5HashBytes ¶
MD5HashBytes hashes the data of the byte array
func RandomUserAgent ¶
func RandomUserAgent() string
RandomUserAgent function to generate random user agent
func RightParse ¶
RightParse function to parse string given right delimiter
func SHA1HashBytes ¶
The SHA1HashBytes function returns the SHA1 hash of the byte array
func SHA256Hash ¶
The SHA256Hash function returns the SHA256 hash of the string
func SHA256HashBytes ¶
The SHA256HashBytes function returns the SHA256 hash of the byte array
func SetConsoleTitle ¶
SetConsoleTitle function sets the console title of the current console window. (No support for linux)
Types ¶
type Account ¶
func (*Account) AddCaptureBool ¶
AddCaptureBool adds a bool to the capture list
func (*Account) AddCaptureInt ¶
AddCaptureInt adds an int to the capture list
func (*Account) AddCaptureString ¶
AddCaptureString adds a string to the capture list
type Proxy ¶
func (*Proxy) HttpProxyType ¶
HttpProxyType returns a http proxy client
type Worker ¶
type Worker struct {
Work func()
}
func (*Worker) AddWork ¶
func (w *Worker) AddWork(f func())
AddWork function adds a new work item to the worker's work queue
func (*Worker) StartWorker ¶
func (w *Worker) StartWorker()
StartWorker starts the worker and performs the work assigned to it
func (*Worker) WorkerFunc ¶
WorkerFunc is the function that the worker will perform