antibot

package
v0.0.0-...-154dcf8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSecureCookie

func GenerateSecureCookie(device Device) (string, error)

func NewIOS17UserAgent

func NewIOS17UserAgent() (string, string)

func RandDeviceSerial

func RandDeviceSerial() string

Types

type AWSCaptchaData

type AWSCaptchaData struct {
	Iv              string
	SiteKey         string
	Url             string
	Context         string
	ChallengeScript string
	CaptchaScript   string
}

type CaptchaClient

type CaptchaClient struct {
	// contains filtered or unexported fields
}

func NewCaptchaClient

func NewCaptchaClient(apiKey string) CaptchaClient

func (*CaptchaClient) SolveAWSCaptcha

func (cc *CaptchaClient) SolveAWSCaptcha(cd AWSCaptchaData) (string, error)

func (*CaptchaClient) SolveCap

func (cc *CaptchaClient) SolveCap(img []byte) (string, error)

type ChallengeData

type ChallengeData struct {
	ClientId         string
	Verifier         string
	VerifierChecksum string
}

func GenerateChallengeData

func GenerateChallengeData(serial string) (ChallengeData, error)

type Device

type Device struct {
	DeviceData   DeviceData
	AppUserAgent string
	WebUserAgent string
	Serial       string
}

func GetRandAlexaDevice

func GetRandAlexaDevice(os string) Device

type DeviceData

type DeviceData struct {
	ApplicationVersion         string
	DeviceLanguage             string
	DeviceFingerprintTimestamp string
	DeviceOSVersion            string
	DeviceName                 string
	ScreenHeightPixels         string
	ThirdPartyDeviceId         string
	TimeZone                   string
	ApplicationName            string
	ScreenWidthPixels          string
	DeviceJailbroken           bool
}

Jump to

Keyboard shortcuts

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