假设我想用python做一个软件,你必须购买它。我如何制作一个系统,为用户提供一个“白名单代码”,他们可以用来访问我的软件。但是,此代码需要一次性使用并绑定HWID。我无论如何都不是一个专业的python开发人员,所以我不知道从哪里开始这样的任务。
非常感谢您的帮助。
发布于 2021-06-29 08:54:41
我在这里找到了答案,希望这能对你有所帮助!
hwid = str(subprocess.check_output(
'wmic csproduct get uuid')).split('\\r\\n')[1].strip('\\r').strip()
data = requests.get(
'https://gist.githubusercontent.com/rishav394/z/raw/x')
if hwid in data.text:
print('Authenticated!')
auth = True
else:
print(hwid + ' was not found on the server.\nNot authorised!')https://stackoverflow.com/questions/64217895
复制相似问题