├── README.md └── main.py /README.md: -------------------------------------------------------------------------------- 1 | # HWID-Authentication-System 2 | 3 | ## Description 4 | Protects your project from unauthorized users using their HWIDS. 5 | 6 | ## Installation 7 | 1. Open up CMD or powershell and type: 8 | ```bash 9 | pip install requests 10 | ``` 11 | 2. Done 12 | 13 | ## Usage 14 | 1. Add the code at the beginning of your project. 15 | 2. On line 7 : ```site = requests.get('TYPE SITE HERE')``` 16 | 3. Replace TYPE SITE HERE with link where you store your Hardware IDS in , example is a raw pastebin or a raw github text file. 17 | 4. Done. 18 | 19 | You should also replace these lines of code with your actual code. 20 | ```print('Success.')``` 21 | ```input()``` 22 | 23 | ## Support 24 | If you need any help you can contact my discord: zqua#9285 25 | 26 | ## License 27 | Anyone can use this authentication system to their projects. 28 | 29 | ## Project status 30 | This project is Finished. 31 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | #Make sure that this code is above your current one. 2 | 3 | #Imports 4 | import subprocess, requests, time, os 5 | 6 | #Strings 7 | hardwareid = subprocess.check_output('wmic csproduct get uuid').decode().split('\n')[1].strip() 8 | site = requests.get('TYPE SITE HERE') 9 | 10 | 11 | #Actual Authentication System 12 | try: 13 | if hardwareid in site.text: 14 | pass 15 | else: 16 | print('[ERROR] HWID NOT in database') 17 | print('[HWID:' + hardwareid + ']') 18 | time.sleep(5) 19 | os._exit() 20 | except: 21 | print('[ERROR] FAILED to connect to database') 22 | time.sleep(5) 23 | os._exit() 24 | 25 | #Your actual project comes under here: 26 | print('Success.') 27 | input() 28 | --------------------------------------------------------------------------------