Python: Хорошо ли защищать приложение с помощью HWID (это можно изменить?)? - PullRequest
0 голосов
/ 23 апреля 2020

Здравствуйте, я начинающий программист, и я начал делать некоторые проекты, я защищаю свои коды с помощью HWID. Это мой код:

Цитата

    import time
import subprocess
import requests
import os
hwid = str(subprocess.check_output('wmic csproduct get uuid')).split('\\r\\n')[1].strip('\\r').strip()
os.system('cls')
try : 
    data = requests.get('https://pastebin.com/raw/CrE8sJuJ')
    x0fx = False
except requests.exceptions.ConnectionError :#internet doesn't work
    print('\033[1;31m Check Your Internet Connection / server not found .\n Please Contact with The Programmer he know what  to do : https://www.facebook.com/Th3XCod3er \n or : https://www.youtube.com/channel/UC701fTk3zBjgSptczdxh7ww?view_as=subscriber')
    x0fx = True
    time.sleep(10)
datapp = '4C4C4544-0058-5A10-8031-C8C04F36344A'
if x0fx == False :
    if hwid in data.text and hwid in datapp:
        print('\033[1;32m Authenticated!')#if internet works and HWID is correct and in my server
        auth = True
        time.sleep(10)
    elif hwid in datapp and x0fx == True:
        print('\033[1;31m Check Your Internet Connection / server not found .\n Please Contact with The Programmer he know what  to do  : https://www.facebook.com/Th3XCod3er  or https://www.youtube.com/channel/UC701fTk3zBjgSptczdxh7ww?view_as=subscriber')
        time.sleep(10)
        auth = False
    else: #internet works fine and HWID is not correct or not in My Server 
        print('\033[1;33m You must purchase a license from the programmer (Muhammad Tariq) ,, '+ '/Not authorised!')
        time.sleep(10)
...