@@ -121,7 +121,7 @@ def register(self, user, password, license, hwid=None):
121
121
json = jsond .loads (response )
122
122
123
123
if json ["success" ]:
124
- print ("Successfully registered" )
124
+ print (json [ "message" ] )
125
125
self .__load_user_data (json ["info" ])
126
126
else :
127
127
print (json ["message" ])
@@ -145,7 +145,7 @@ def upgrade(self, user, license):
145
145
json = jsond .loads (response )
146
146
147
147
if json ["success" ]:
148
- print ("Successfully upgraded user" )
148
+ print (json [ "message" ] )
149
149
print ("Please restart program and login" )
150
150
time .sleep (3 )
151
151
os ._exit (1 )
@@ -175,7 +175,7 @@ def login(self, user, password, hwid=None):
175
175
176
176
if json ["success" ]:
177
177
self .__load_user_data (json ["info" ])
178
- print ("Successfully logged in" )
178
+ print (json [ "message" ] )
179
179
else :
180
180
print (json ["message" ])
181
181
time .sleep (3 )
@@ -201,7 +201,7 @@ def license(self, key, hwid=None):
201
201
202
202
if json ["success" ]:
203
203
self .__load_user_data (json ["info" ])
204
- print ("Successfully logged in with license" )
204
+ print (json [ "message" ] )
205
205
else :
206
206
print (json ["message" ])
207
207
time .sleep (3 )
@@ -582,6 +582,21 @@ def get_hwid():
582
582
sid = win32security .LookupAccountName (None , winuser )[0 ] # You can also use WMIC (better than SID, some users had problems with WMIC)
583
583
hwid = win32security .ConvertSidToStringSid (sid )
584
584
return hwid
585
+ '''
586
+ cmd = subprocess.Popen(
587
+ "wmic useraccount where name='%username%' get sid",
588
+ stdout=subprocess.PIPE,
589
+ shell=True,
590
+ )
591
+
592
+ (suppost_sid, error) = cmd.communicate()
593
+
594
+ suppost_sid = suppost_sid.split(b"\n ")[1].strip()
595
+
596
+ return suppost_sid.decode()
597
+
598
+ ^^ HOW TO DO IT USING WMIC
599
+ '''
585
600
elif platform .system () == 'Darwin' :
586
601
output = subprocess .Popen ("ioreg -l | grep IOPlatformSerialNumber" , stdout = subprocess .PIPE , shell = True ).communicate ()[0 ]
587
602
serial = output .decode ().split ('=' , 1 )[1 ].replace (' ' , '' )
0 commit comments