This file contains hidden or 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
| .model tiny | |
| .code | |
| start: | |
| push ds ; save DS register | |
| xor cx,cx ; clear CX | |
| mov ds,cx ; set DS to 0 to access BIOS data area | |
| ; Detect parallel port address from BIOS data area (0x0408) | |
| mov bx,408h |
This file contains hidden or 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
| import os | |
| import json | |
| import subprocess | |
| import urllib | |
| import urllib.request | |
| import urllib.parse | |
| API_HOST = "public-operation-hk4e-sg.hoyoverse.com" | |
This file contains hidden or 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
| from sys import argv | |
| def validate(key): | |
| magic = 3 | |
| count = 0 | |
| for c in key: | |
| if not c.isdigit(): | |
| continue | |
| v = int(c) | |
| count += 1 |