-
-
Save zhaoboy9692/a2ec2b74399b5d8ea31e2d31f66e3b8d to your computer and use it in GitHub Desktop.
KeyGen for tlsdump | tlsdump注册机 破解
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
#!/usr/bin/env python3 | |
import base64 | |
import subprocess | |
from json import dumps | |
from hashlib import md5 | |
from Crypto.Cipher import AES | |
from Crypto.Util.Padding import pad | |
def get_id_and_sn(): | |
file_name = "./tlsdump_linux_amd64" | |
_id = subprocess.check_output([file_name, "-id"]).decode().split(":")[1].strip() | |
_sn = subprocess.check_output([file_name, "-sn"]).decode().split(":")[1].strip() | |
return _id, _sn | |
def gen_serial(_id, _sn): | |
key = md5(b'ortgk@69#td!%gt7l&ic' + _sn.encode()).hexdigest()[-24:][:16].encode() | |
cipher = AES.new(key, AES.MODE_CBC, key) | |
serial = base64.b64encode(cipher.encrypt(pad(dumps({ | |
"AppUUID": _id, | |
"SN": _sn, | |
"ExpireTime": "2199-08-10 11:45:14", | |
"Test": "CrackedBy: HanFufeng" | |
}).encode(), 16))).decode() | |
with open("app.lic", "w") as f: | |
f.write(serial) | |
print(f"[Saved at app.lic] Serial: {serial}") | |
gen_serial(*get_id_and_sn()) | |
print("Now you can run ./tlsdump_linux_amd64 with the generated app.lic") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment