Skip to content

Instantly share code, notes, and snippets.

@einstein95
einstein95 / dongle.asm
Last active February 6, 2026 02:23 — forked from dbrant/dongle.asm
Disassembly of hardware dongle code; compilable in MASM
.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
import os
import json
import subprocess
import urllib
import urllib.request
import urllib.parse
API_HOST = "public-operation-hk4e-sg.hoyoverse.com"
@einstein95
einstein95 / sckey.py
Last active August 22, 2017 07:26 — forked from notwa/sckey.c
Starcraft CD-Key Validator
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