wtlogin

package
v0.0.0-...-eae0efe Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCode2dPacket

func BuildCode2dPacket(uin uint32, cmdID int, appInfo *info.AppInfo, body []byte) []byte

func BuildKexExchangeRequest

func BuildKexExchangeRequest(uin uint32, guid string) []byte

func BuildLoginPacket

func BuildLoginPacket(uin uint32, cmd string, appinfo *info.AppInfo, body []byte) []byte

func BuildRegisterRequest

func BuildRegisterRequest(app *info.AppInfo, device *info.DeviceInfo) []byte

BuildRegisterRequest trpc.qq_new_tech.status_svc.StatusService.Register

func BuildSSOHeartbeatRequest

func BuildSSOHeartbeatRequest() []byte

BuildSSOHeartbeatRequest trpc.qq_new_tech.status_svc.StatusService.SsoHeartBeat

func BuildUniPacket

func BuildUniPacket(uin, seq int, cmd string, sign map[string]string,
	appInfo *info.AppInfo, deviceInfo *info.DeviceInfo, sigInfo *info.SigInfo, body []byte) []byte

func DecodeLoginResponse

func DecodeLoginResponse(buf []byte, sig *info.SigInfo) (bool, error)

func ParseKeyExchangeResponse

func ParseKeyExchangeResponse(response []byte, sig *info.SigInfo)

func ParseLv

func ParseLv(buffer *bytes.Buffer) []byte

func ParseOicqBody

func ParseOicqBody(buf []byte) ([]byte, error)

func ParseRegisterResponse

func ParseRegisterResponse(response []byte) bool

Types

type SSOHeader

type SSOHeader struct {
	Flag uint8
	Uin  string
	Dec  []byte
}

func ParseSSOHeader

func ParseSSOHeader(raw, d2Key []byte) (*SSOHeader, error)

type SSOPacket

type SSOPacket struct {
	Seq       int
	RetCode   int
	Extra     string
	SessionID []byte
	Cmd       string
	Data      []byte
}

func NewSSOPacket

func NewSSOPacket(seq, retCode int, extra string, sessionID []byte, cmd string, data []byte) *SSOPacket

func ParseSSOFrame

func ParseSSOFrame(buffer []byte, IsOicqBody bool) (*SSOPacket, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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