-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathauth.py
63 lines (60 loc) · 2.34 KB
/
auth.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import getmac
import sys
import time
import requests
import subprocess
# Copyright 2020 github.com/lilcsz
# [!] Do not share this code
class colors:
OKGREEN = '\033[92m'
RED = '\033[1;31;48m'
def auth():
global mac, hwid
try:
if sys.platform.startswith("linux"):
#MacAdressCheck
mac = subprocess.Popen("getmac", shell=True,stdout=subprocess.PIPE).communicate()[0].decode('utf-8').strip()
useragent = {'User-Agent':'Python3 Auth System - Linux'}
r = requests.get('urlhere',headers=useragent)
if mac in r.text:
pass
print(f"{colors.OKGREEN}You are logged with: {mac}")
else:
print(f'{colors.RED}[ERROR] MAC Not in database')
print(f'{colors.RED}MAC: {mac}')
time.sleep(999999999)
time.sleep(999999999)
time.sleep(999999999)
time.sleep(999999999)
time.sleep(999999999)
else:
#HwidCheck
hwid = subprocess.check_output('wmic csproduct get uuid').decode().split('\n')[1].strip()
useragent = {'User-Agent':'Python3 Auth System - Windows'}
r = requests.get('urlhere',headers=useragent)
if hwid in r.text:
pass
print(f"{colors.OKGREEN}You are logged with: {hwid}")
else:
print(f'{colors.RED}[ERROR] HWID Not in database')
print(f'{colors.RED}HWID: {hwid}')
time.sleep(999999)
time.sleep(999999)
time.sleep(999999)
time.sleep(999999)
time.sleep(999999)
time.sleep(999999)
time.sleep(999999)
time.sleep(999999)
sys.exit()
except:
print(f'{colors.RED}[ERROR] No internet connection')
time.sleep(999999)
time.sleep(999999)
time.sleep(999999)
time.sleep(999999)
time.sleep(999999)
time.sleep(999999)
time.sleep(999999)
time.sleep(999999)
auth()