mooc

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDLInitParams

func BuildDLInitParams(pd, pkid, pkht string, channel int, topURL, rtid string) string

构建DLInit的Params参数

func BuildGTParams

func BuildGTParams(un string, channel int, pd, pkid string, topURL, rtid string) string

构建GT的Params参数

func BuildLParams

func BuildLParams(l, d int, un, pw, pd, pkid, tk, domains, puzzle string, spendTime, runTimes int, sid, x string, t, sign, channel int, topURL, rtid string) string

func BuildPowGetPParams

func BuildPowGetPParams(pd, pkid, un, pvSid string, channel int, topURL, rtid string) string

构建PowGetP的Params参数

func BuildRtId

func BuildRtId() string

生成rtid

func BuildZCInitParams

func BuildZCInitParams(pd, pkid, pkht string, channel int, topURL, rtid string) string

构建ZCInit的Params参数

func MOOCEncMS4

func MOOCEncMS4(content string) string

MOOC请求用的MS4国密算法加密

func MOOCRSA

func MOOCRSA(content string) string

MOOC的RSA加密

func PowGetPTurnLData

func PowGetPTurnLData(puzzle, mod, x string, t int, minTime, maxTime int64) (int, int64, int, string)

powgetp转登录数据

func PowSign

func PowSign(key string, seed int) uint32

MurmurHash3 32-bit 实现 (对应 powSign)

func VdfAsync

func VdfAsync(data Data) (int, int64, int, string, uint32)

Types

type Args

type Args struct {
	Mod    string
	T      int
	Puzzle string
	X      string
}

type Data

type Data struct {
	NeedCheck bool
	Sid       string
	HashFunc  string
	MaxTime   int64
	MinTime   int64
	Args      Args
}

type MOOCUserCache

type MOOCUserCache struct {
	Account   string //账号
	Password  string //用户密码
	TK        string //通过GT获取的参数
	Sid       string
	X         string
	T         int
	Puzzle    string
	Mod       string
	MinTime   int64
	MaxTime   int64
	IpProxySW bool   //是否开启IP代理
	ProxyIP   string //代理IP
	// contains filtered or unexported fields
}

func (*MOOCUserCache) GtApi

func (cache *MOOCUserCache) GtApi()

func (*MOOCUserCache) InitCookiesApi

func (cache *MOOCUserCache) InitCookiesApi()

用于初始化Cookie参数

func (*MOOCUserCache) LoginApi

func (cache *MOOCUserCache) LoginApi()

func (*MOOCUserCache) PowGetPApi

func (cache *MOOCUserCache) PowGetPApi()

powGetP 接口

Jump to

Keyboard shortcuts

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