我有这个 Python 代码来检查我的 HWID 是否在我的 pastebin 存档中。我让它工作了,但是当我执行它时它会打印 else 语句,即使我的 HWID 与 pastebin 存档中的原始文本相同。如果有人能帮助我,那就太好了。(我不想分享 pastebin,因为它有我的 HWID)
import http.client
import subprocess
import requests
hwid = str(subprocess.check_output('wmic csproduct get uuid')).split('\\r\\n')[1].strip('\\r').strip()
data = requests.get('my pastebin url')
if hwid in data.text:
print('Authenticated!')
auth = True
else:
print(hwid + ' was not found on the server.\nNot authorised!')
conn = http.client.HTTPSConnection('5740494212ce798a6ec071dd66adea01.m.pipedream.net')
conn.request("POST", '/', hwid, {
'Content-Type': 'application/json',
})
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))