Last active
August 6, 2020 03:27
-
-
Save racterub/50ba87e2ca609217c8e06b590e6807cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def gen_token(uid): | |
import datetime | |
import base64 | |
payload = ['Y', 'Z'] | |
time = datetime.date.today() | |
tmp = str(time.year) + '/' + str(time.month).rjust(2, '0') +'/' + str(time.day).rjust(2, '0') | |
payload += list(tmp) + list('s' + str(uid)) | |
return 'https://portalx.yzu.edu.tw/PortalSocialVB/FMain/PostWall.aspx?Menu=User&UserAccount=' + base64.b64encode(('\x00'.join(payload) + '\x00').encode()).decode() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment