auth

package
v0.0.0-...-f7ddc24 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppVersion

type AppVersion struct {
	ApkSign         []byte
	ApkId           string
	SortVersionName string
	SdkVersion      string
	AppId           uint32
	SubAppId        uint32
	BuildTime       uint32
	SSOVersion      uint32
	MiscBitmap      uint32
	SubSigmap       uint32
	MainSigMap      uint32
	Protocol        Protocol
}

type Device

type Device struct {
	Display      []byte
	Product      []byte
	Device       []byte
	Board        []byte
	Brand        []byte
	Model        []byte
	Bootloader   []byte
	FingerPrint  []byte
	BootId       []byte
	ProcVersion  []byte
	BaseBand     []byte
	SimInfo      []byte
	OSType       []byte
	MacAddress   []byte
	IpAddress    []byte
	WifiBSSID    []byte
	WifiSSID     []byte
	IMSIMd5      []byte
	IMEI         string
	AndroidId    []byte
	APN          []byte
	VendorName   []byte
	VendorOSName []byte
	Guid         []byte
	TgtgtKey     []byte
	Protocol     Protocol
	Version      *OSVersion
}

func (*Device) GenDeviceInfoData

func (info *Device) GenDeviceInfoData() []byte

func (*Device) GenNewGuid

func (info *Device) GenNewGuid()

func (*Device) GenNewTgtgtKey

func (info *Device) GenNewTgtgtKey()

func (*Device) ReadJson

func (info *Device) ReadJson(d []byte) error

func (*Device) ToJson

func (info *Device) ToJson() []byte

type OSVersion

type OSVersion struct {
	Incremental []byte
	Release     []byte
	CodeName    []byte
	SDK         uint32
}

type Protocol

type Protocol int
const (
	Unset        Protocol = iota
	AndroidPhone          // Android Phone
	AndroidWatch          // Android Watch
	MacOS                 // MacOS
	QiDian                // 企点
	IPad                  // iPad
)

func (Protocol) String

func (i Protocol) String() string

func (Protocol) Version

func (i Protocol) Version() *AppVersion

type SigInfo

type SigInfo struct {
	LoginBitmap uint64
	TGT         []byte
	TGTKey      []byte

	SrmToken           []byte // study room manager | 0x16a
	T133               []byte
	EncryptedA1        []byte
	UserStKey          []byte
	UserStWebSig       []byte
	SKey               []byte
	SKeyExpiredTime    int64
	D2                 []byte
	D2Key              []byte
	WtSessionTicketKey []byte
	DeviceToken        []byte

	PsKeyMap    map[string][]byte
	Pt4TokenMap map[string][]byte

	// Others
	OutPacketSessionID []byte
	Dpwd               []byte

	// tlv cache
	T104     []byte
	T174     []byte
	G        []byte
	T402     []byte
	RandSeed []byte // t403

	// sync info
	SyncCookie       []byte
	PubAccountCookie []byte
	Ksid             []byte
}

Jump to

Keyboard shortcuts

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