Documentation
¶
Index ¶
- func Encrypt(content string, pubkeyB64 string) (string, error)
- func EncryptAES(data, userAgent, xArkValue string) (string, error)
- func ExtractRSAKey(apiJS string) string
- func KHash(data string, seed uint32) string
- func PickAudioFingerprint() string
- type Config
- type DeviceIdentity
- type DeviceProfile
- type HDRInfo
- type Item
- type Option
- func WithCapiMode(m string) Option
- func WithDataExchangeRegex(re string) Option
- func WithDataExchangeURL(u string) Option
- func WithLanguage(l string) Option
- func WithOrigin(o string) Option
- func WithProxy(p string) Option
- func WithPublicKey(pk string) Option
- func WithRSAPublicKey(spki string) Option
- func WithReferer(r string) Option
- func WithSite(site string) Option
- func WithSitedataLocationHref(u string) Option
- func WithSurl(surl string) Option
- func WithTitle(t string) Option
- func WithUserAgent(ua string) Option
- type SolveResult
- type Solver
- type Vendor
- type WebGLFingerprint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptAES ¶
func ExtractRSAKey ¶
func PickAudioFingerprint ¶
func PickAudioFingerprint() string
Types ¶
type Config ¶
type Config struct {
PublicKey string
RSAPublicKey string
Surl string
Site string
Origin string
Referer string
SitedataLocationHref string
WindowLocationHref string
DocumentReferrer string
SecFetchSite string
DataExchangeURL string
DataExchangeRegex string
CapiVersion string
EnforcementHash string
CapiMode string
StyleTheme string
Language string
Title string
UserAgent string
Proxy string
WindowAncestorOrigins []string
WindowTreeIndex []int
WindowTreeStructure string
Jsbd string
}
type DeviceIdentity ¶
type DeviceIdentity struct {
Salt string
MachineHash string
Hash7541c2s string
MathFingerprint string
SupportedMathFuncs string
Hash6a62b2a558 string
Hashc2d2015 string
Hash05d3d24 string
Hash83eb055 string
Hash1f220c9 string
TreeStructure string
CFP int32
TZOffset int
LanguageTag string
SpeechDefaultVoice string
SpeechVoicesHash string
Languages string
FontList string
}
func NewSession ¶
func NewSession() *DeviceIdentity
func (*DeviceIdentity) String ¶
func (d *DeviceIdentity) String() string
type DeviceProfile ¶
type DeviceProfile struct {
Name string
Vendor Vendor
GPUID string
GPUName string
GLVendor string
GLRenderer string
ScreenWidth, ScreenHeight int
AvailWidth, AvailHeight int
ColorDepth int
DevicePixelRatio float64
OuterWidth, OuterHeight int
DeviceMemory int
HardwareConcurrency int
Downlink float64
RTT int
SaveData bool
}
func GenerateDevice ¶
func GenerateDevice() DeviceProfile
func (DeviceProfile) Inner ¶
func (d DeviceProfile) Inner() (w, h int)
func (DeviceProfile) WebGL ¶
func (d DeviceProfile) WebGL() WebGLFingerprint
type Option ¶
type Option func(*Config)
func WithCapiMode ¶
func WithDataExchangeRegex ¶
func WithDataExchangeURL ¶
func WithLanguage ¶
func WithOrigin ¶
func WithPublicKey ¶
func WithRSAPublicKey ¶
func WithReferer ¶
func WithUserAgent ¶
type SolveResult ¶
type Solver ¶
type Solver struct {
// contains filtered or unexported fields
}
func (*Solver) SetDataBlob ¶
func (*Solver) SetHTTPClient ¶
func (s *Solver) SetHTTPClient(c tls_client.HttpClient)
func (*Solver) Solve ¶
func (s *Solver) Solve() (*SolveResult, error)
type WebGLFingerprint ¶
Click to show internal directories.
Click to hide internal directories.