kasada

package
v4.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrScriptPathNotFound = errors.New("hyper-sdk: script path not found")
)

Functions

func GenerateDV added in v4.2.0

func GenerateDV(osVersion, hardwareID, appID, appVersion string) string

GenerateDV returns the x-kpsdk-dv header value the Kasada iOS SDK (i-2.x) sends: base64 of {"osVersion":…,"hardwareId":…,"appId":…,"appVersion":…} XORed with the SDK's key.

osVersion is UIDevice.systemVersion (e.g. "18.0.1") and hardwareID is the model identifier from utsname.machine (e.g. "iPhone13,2" for an iPhone 12), not the marketing name. appID is the app's bundle id and appVersion its version string, the same values GenerateUserAgent takes, so a user-agent and a dv built from one set of inputs describe the same app and device.

Send the same value as the dv field of KasadaPayloadInput, so the payload is generated on a device with that model's screen and iOS release.

func GenerateUserAgent

func GenerateUserAgent(osVersion, bundleID, appVersion string) string

GenerateUserAgent returns the Kasada mobile user-agent value: the lowercase hex MD5 of "<osVersion> / <bundleID> <appVersion>". On iOS osVersion is UIDevice.systemVersion (e.g. "18.0.1") and bundleID is the app bundle id (e.g. "com.example.app"); on Android osVersion is Build.VERSION.SDK_INT (e.g. "34") and bundleID is the package name. appVersion is the app version string (e.g. "9.15.0").

func ParseScriptPath

func ParseScriptPath(reader io.Reader) (string, error)

ParseScriptPath gets the Kasada ips.js script path from a blocked response body (status code 429)

Types

This section is empty.

Jump to

Keyboard shortcuts

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