Repository navigation
Expand file tree
/
Copy pathsql.py
More file actions
53 lines (40 loc) · 1.38 KB
/
Copy pathsql.py
File metadata and controls
53 lines (40 loc) · 1.38 KB
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
import subprocess #line:1
import sys
import pymysql as MySQLdb #line:2
import os #line:4
from sys import stderr ,stdin ,stdout ,platform
import ctypes #line:6
import random #line:7
import string #line:8
class title():
letter ='SDK2LFSKAEPOEUYRBZJFKELAXA3411LFK'#line:9
os .system ("title "+"".join (random .choices (letter ,k =17 )))
class lock ():#line:11
w = str(subprocess.check_output('wmic csproduct get uuid'), 'utf-8').split('\n')[1].strip()
x = 'wonk'
j =(w)
sql = "INSERT INTO 'key_id_' ('hwid_') VALUES (%s)"
db =MySQLdb .connect (host ='sql3.freemysqlhosting.net',
user ='sql3521617',
passwd ='9nliDkYDut',
port =3306
,db ="sql3521617")#line:12
cur=db .cursor ()#line:13
val = (w)
cur.execute(
"""INSERT INTO key_id_(test) VALUES(%s)"""
% (w,))
conn.commit()
rows = cur.fetchall() # line:15
for row in rows :#line:16
hw =str (subprocess .check_output ('wmic csproduct get uuid'),'utf-8').split ('\n')[1 ].strip ()#line:17
hwid =row [0 ]#line:18
if hw in hwid :#line:19
print ("Authenticated")
input()
os.system('cls')
import prgx
from prgx import cl
else :
print (hw +" NOT IN DATABASE ")
input ()