Jenway / PySDU

SDU online service tool. Use it to sign in to the SDU union pass account.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDU SSO login

Many thanks to existing projects including:

现在已经能 Current features:

  • login to SDU SSO, and bind fake device fingerprint to the account to bypass the 2FA process
  • get user info
  • get lessons from bkzhjx.wh.sdu.edu.cn
  • get classroom info from pcms.sdu.edu.cn (TO be enhanced and stored in database and support all API features, not yet finished)

Install

pdm install

or use pip to install:

pip install -r requirements.txt

Usage

First, it is recommended that the fingerprint json file be edited. You may use a random json whose keys and values are random strings. I am not sure whether a too-simple string can pass the device fingerprint check on SDU pass.

python ./src/main.py  # get user info
python ./src/bkzhjx_login.py  # get lessons

Some findings

In cookies file we can find a SERVERID. Perhaps we can try getting data from all servers at the same time when some of the servers' response is terribly slow.

About

SDU online service tool. Use it to sign in to the SDU union pass account.

License:Mozilla Public License 2.0


Languages

Language:Python 100.0%