auth

package
v0.0.0-...-ad4a85e Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppList = map[string]*AppInfo{
	"linux": {
		OS:       "Linux",
		Kernel:   "Linux",
		VendorOS: "linux",

		CurrentVersion:   "3.1.2-13107",
		BuildVersion:     13107,
		MiscBitmap:       32764,
		PTVersion:        "2.0.0",
		PTOSVersion:      19,
		PackageName:      "com.tencent.qq",
		WTLoginSDK:       "nt.wtlogin.0.0.1",
		PackageSign:      "V1_LNX_NQ_3.1.2-13107_RDM_B",
		AppID:            1600001615,
		SubAppID:         537146866,
		AppIDQrcode:      13697054,
		AppClientVersion: 13172,

		MainSigmap:  169742560,
		SubSigmap:   0,
		NTLoginType: 1,
	},
	"macos": {
		OS:       "Mac",
		Kernel:   "Darwin",
		VendorOS: "mac",

		CurrentVersion:   "6.9.20-17153",
		BuildVersion:     17153,
		MiscBitmap:       32764,
		PTVersion:        "2.0.0",
		PTOSVersion:      23,
		PackageName:      "com.tencent.qq",
		WTLoginSDK:       "nt.wtlogin.0.0.1",
		PackageSign:      "V1_MAC_NQ_6.9.20-17153_RDM_B",
		AppID:            1600001602,
		SubAppID:         537162356,
		AppIDQrcode:      537162356,
		AppClientVersion: 13172,

		MainSigmap:  169742560,
		SubSigmap:   0,
		NTLoginType: 5,
	},
}
View Source
var (
	ErrDataHashMismatch = errors.New("data hash mismatch")
)

Functions

This section is empty.

Types

type AppInfo

type AppInfo struct {
	OS       string `json:"os"`
	Kernel   string `json:"kernel"`
	VendorOS string `json:"vendor_os"`

	CurrentVersion   string `json:"current_version"`
	BuildVersion     int    `json:"build_version"`
	MiscBitmap       int    `json:"misc_bitmap"`
	PTVersion        string `json:"pt_version"`
	PTOSVersion      int    `json:"pt_os_version"`
	PackageName      string `json:"package_name"`
	WTLoginSDK       string `json:"wtlogin_sdk"`
	PackageSign      string `json:"package_sign"`
	AppID            int    `json:"app_id"`
	SubAppID         int    `json:"sub_app_id"`
	AppIDQrcode      int    `json:"app_id_qrcode"`
	AppClientVersion int    `json:"app_client_version"`
	MainSigmap       int    `json:"main_sigmap"`
	SubSigmap        int    `json:"sub_sigmap"`
	NTLoginType      int    `json:"nt_login_type"`
}

type DeviceInfo

type DeviceInfo struct {
	Guid          string `json:"guid"`
	DeviceName    string `json:"device_name"`
	SystemKernel  string `json:"system_kernel"`
	KernelVersion string `json:"kernel_version"`
}

func LoadOrSaveDevice

func LoadOrSaveDevice(path string) (*DeviceInfo, error)

func NewDeviceInfo

func NewDeviceInfo(uin int) *DeviceInfo

func (*DeviceInfo) Save

func (deviceInfo *DeviceInfo) Save(path string) error

type SigInfo

type SigInfo struct {
	Uin         uint32
	Sequence    uint32
	Uid         string
	Tgtgt       []byte
	Tgt         []byte
	D2          []byte
	D2Key       []byte
	Qrsig       []byte
	ExchangeKey []byte
	KeySig      []byte
	Cookies     string
	UnusualSig  []byte
	TempPwd     []byte
	CaptchaInfo [3]string

	Nickname string
	Age      uint8
	Gender   uint8
}

func UnmarshalSigInfo

func UnmarshalSigInfo(buf []byte, verify bool) (siginfo SigInfo, err error)

func (*SigInfo) Marshal

func (sig *SigInfo) Marshal() ([]byte, error)

Jump to

Keyboard shortcuts

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