-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmarshal.py
927 lines (773 loc) · 23.7 KB
/
marshal.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
#!/usr/bin/python3
# Decoded By: Dr Decrypter | Specter
# Published in: https://t.me/esfelurm && ghttps://github.com/Mr-Spect3r
# Decode : marshal3.8 - 3.11
# Decode : zlib
# Decode : Base64
# Prerequisites: pycdc,pycdas
# =========================================================
from re import findall
from typing import Optional
import sys,marshal,re
from typing import Union,Optional
from types import CodeType
from zipfile import ZipFile
from rich.console import Console
cons=Console()
console=cons
from subprocess import Popen, PIPE
import webbrowser,os,builtins
from multiprocessing import Process
from rich.syntax import Syntax
import os
tr = '[red][[/red][green]+[/green][red]][/red] '
def bytos(so):
source=so
do={}
for i in source.split('bytes'):
try:
sb=str(i).split('(')[1]
sb=sb.split(').dec')[0]
enc='bytes('+sb+').decode()'
ev=(sb.replace(' ',''))
ls=[]
for e in ev.split('\n'):
e=e.replace(',','')
e=e.replace(']','')
e=e.replace('[','')
try:
en=(int(e))
ls.append(en)
except:
1
rel=(bytes(ls).decode())
enc=enc
do.update({enc:rel})
ls.clear
except IndexError:
pass
#print(rel)
for en,de in do.items():
#source=open(fi,'r').read()
if en in source:
source=source
#print(de)
source=source.replace(en,f"'''{de}'''")
source=source
#source=open(fi,'w').write(source)
save(source,'w','ou')
def kill_none(source):
cod=open(source,'r').read()
non="""None(None((lambda .0 = None: for i in .0:
"""
rng='))(range('
qc='))))'
cod=cod.replace(non,"str(''.join(")
cod=cod.replace(rng,") for i in range(int(")
open(source,'w').write(cod)
#print(cod)
def kill_non(file):
rso=file
fin=open(file,'r')
#fri=0
if 'None(None((lambda' in fin.read():
fri=0
for jkk in open(file,'r').readlines():
if 'None(None((lambda' in jkk:
fri+=1
for ils in range(fri):
file =open(rso,'r').read()
first=file.split('None(None((lambda')[1]
fend=first.split(')))')[0]
none=('None(None((lambda'+fend+'))))')
print(none)
cho=first.split('choice(')[1].split(')')[0]
rang=first.split('range(')[1]
if '(' in rang:
rang=rang.split('int(')[1].split(')')[0]
else:
rsng=rang.split(')')[0]
#print(range)
rel="str(''.join(random.choice("+str(cho)+') for i in range(int('+str(rang)+'))'
if none in file:
#print(none)
sourc=file.replace(none,rel)
open(rso,'w').write(sourc)
Copyright=['@esfelurm','@Mr_Spect3r']
def clear_un(source):
p="Thread(rann, **('target',)"
if p in source:
source=source.replace(p,'Thread(target=rann')
p='return None'
if p in source:
source=source.replace(p,'')
p='''finally:
continue'''
if p in source:
source=source.replace(p,'except:')
p='''finally:
pass'''
if p in source:
source=source.replace(p,'except:')
p='''finally:
pass'''
if p in source:
source=source.replace(p,'except:')
p='''finally:
pass'''
if p in source:
source=source.replace(p,'except:')
p='finally:'
if p in source:
source=source.replace(p,'except:')
p=" copyright = '@esfelurm'"
if p in source:
source=source.replace(p,'')
p='continue'
if p in source:
source=source.replace(p,'')
p='''foo = False
if foo:
try:'''
ex=""" except:
1"""
if p in source:
source=source+ex
#header
h="(c, head1, data1, **('headers', 'data'))"
if h in source:
source=source.replace(h,"(url=c,headers=head1,data1)")
h="(url, headers, **('headers',))"
if h in source:
source=source.replace(h,'(url=url,headers=headers')
h="'cookie': cok }, **('cookies',)"
if h in source:
source=source.replace(h,"'cookie': cookies=cok")
h="headers_, **('headers',)"
if h in source:
source=source.replace(h,'headera=headera_,')
if "os.system('pip install" in source:
source=source.replace("os.system('pip install"," os.system('pip install")
h="\n')"
if h in source:
source =source.replace(h,"')")
h="head1, **('headers',)"
if h in source:
source =source.replace(h,'headers=head1')
h="headers, cookies, **('headers', 'cookies')"
if h in source :
source =source.replace(h,'headers=headers,cookies=cookies')
h="head, **('headers',)"
if h in source :
source=source.replace(h,'headers=head')
h="headers, data, **('headers', 'data')"
if h in source :
source =source.replace(h,'headers=headers,data=data')
h="headers, **('headers',)"
if h in source:
source =source.replace(h,'headers=headers')
h=" os.system('pip install"
if h in source:
source =source.replace(h," os.system('pip install")
cobe="#Dec bY C4 TEAM: @esfelurm oN: @esfelurm🌪️ .\n"
source=cobe+source+''+cobe
open('decoded.py','w').write(source)
#os.system('autopep8 --in-place --aggressive --aggressive decoded.py')
def marsh3():
#print (lo)
import time
#time.sleep(5)
lo=int(console.input(f'[red][[/red][green]1[/green][red]][/red] x84!Z\n[red][[/red][green]2[/green][red]][/red] x02Z\n[red][[/red][green]3[/green][red]][/red] x1e\n[red][[/red][green]4[/green][red]][/red] x01d\n\n\n{tr}Enter Method: '))
try:
source =open(into,'r').read()
if lo==1:
print(lo)
source=source.replace('\x84!Z\x01d\x02d\x03l','\x84!1\x011\x02d\x03l')
save(source,'w','ou')
#decoder(la,lo)
elif lo ==2:
print(lo)
source=source.replace('x02Z','x02z')
save(source,'w','ou')
#decoder(la,lo)
elif lo ==3:
print(lo)
source=source.replace('x1e','x1z')
save(source,'w','ou')
#decoder(la,lo)
elif lo ==4:
print(lo)
source=source.replace(r'x01d\x02d',r'x01z\x02d')
save(source,'w','ou')
#decoder(la,lo)
#
elif lo ==5:
open('47474747474.txt','w').write(source)
Pyprivet(source).source()
source: Union[str, None, CodeType] = FakeFunction(source, outo).get_source()
save(source,'w','ou')
#
else:
decoder(la,lo)
except UnicodeDecodeError:
decoder(la,lo)
def search_func(source: str, function_name: str):
pattern: str = r"(" + function_name + r"(?:[\s]+)?\()"
while True:
func_names = re.findall(pattern, source)
if len(func_names) == 0:
break
for func_name in func_names:
index = source.find(func_name)
if index:
break
if index == -1:
break
text = func_name
open_brakets = 1
for char in source[index + len(func_name):]:
text += char
if char == ")":
open_brakets -= 1
elif char == "(":
open_brakets += 1
if open_brakets == 0:
break
yield source[source.find(text):source.find(text) + len(text)]
source = source[:source.find(text)] + source[source.find(text) + len(text):]
def eval_filter(source) -> str:
def root_search(all_eval_functions, source):
for func in all_eval_functions:
if not func.strip():
all_eval_functions.remove(func)
exceptions = 0
for eval_f in all_eval_functions:
try:
eval_body = re.findall(r"\((.+)\)", eval_f)[0]
bad_functions = ["eval", "exec"]
is_in = False
for function in bad_functions:
if function in eval_body:
is_in = True
if is_in:
root_search(list(set(list(search_func(eval_body, "eval")))), source)
exceptions += 1
continue
except IndexError:
continue
try:
try:
eval_data = eval(f"b{eval_body}").decode()
except Exception:
eval_data = eval(eval_body)
source = source.replace(eval_f, eval_data)
except Exception:
exceptions += 1
return source
return root_search(list(set(list(search_func(source, "eval")))), source)
def show_code(source: str, temp):
if not temp:
p = Process(target=show_code, args=(source, 1))
p.start()
p.join(5)
if p.is_alive():
p.kill()
console.print("# [yellow]can't show the code because the file is too big![/yellow]")
else:
syntax = Syntax(source, "python", line_numbers=True)
console.print(syntax)
class DecompilePyc:
def __init__(self, filename: str):
self.filename = filename
self.std = Popen(["pycdc", filename], stdout=PIPE,
stderr=PIPE)
def get_source(self) -> Optional[str]:
out = self.std.stdout.read().decode()
err = self.std.stderr.read().decode()
if out and err:
return out + '\n' + err
elif out:
return out
else:
print(err)
return None
class DecompileMarshal:
def __init__(self, bytecode: CodeType):
self._data: bytes = marshal.dumps(bytecode)
self._magic_number: bytes = b'a\r\r\n\x00\x00\x00\x00\xe2\xb6\xcea\r\x00\x00\x00'
def get_source(self) -> bytes:
return self._magic_number + self._data
def get_source_type(source) -> str:
try:
compile(source, "<string>", "exec")
return "py"
except Exception:
if type(source) == str:
try:
source = source.encode("utf-8")
except:
pass
if b'PK\x03\x04' in source:
return "zip"
else:
try:
source.decode()
return "py"
except Exception:
return "pyc"
def get_bytecode(source: str) -> CodeType:
return compile(source, "<strings>", "exec")
def get_bytecode_from_file(filename: str) -> CodeType:
try:
with open(filename, "r") as f:
data = f.read()
return get_bytecode(data)
except UnicodeDecodeError:
with open(filename, "rb") as f:
data = f.read()
return marshal.loads(data[16:])
def clean_source(source: Union[str, bytes]) -> Union[str, bytes, CodeType]:
if type(source) == str:
try:
open('3737373737373','w').write(source)
get_bytecode(source)
return source
except SyntaxError:
# print(source)
print("# This is not a python file or maybe there is a syntax error!")
except ValueError:
return source.encode()
try:
return source.decode("utf-8",errors='ignore')
except UnicodeDecodeError :
return get_bytecode(source)
def open_file(filename) -> Union[str, bytes, CodeType]:
try:
with open(filename, "r") as r_file:
source=r_file.read()
source=source.replace("exec(loads","exec(marshal.loads")
return clean_source(source)
except UnicodeDecodeError:
with open(filename, "rb") as rb_file:
return rb_file.read()
class FakeFunction:
def __init__(self, source: str, filename: str):
global __file__
#aa=marshal.loads(eval(source))
self.pyc_source = None
# to save the real functions.
self.old_webbrowser_open = webbrowser.open
self.old_os_system = os.system
self.old__file__ = __file__
self.old_exec = builtins.exec
self.old_loads = marshal.loads
self.old_compile = builtins.compile
#change real functions to fake function.
__file__ = filename
exec = self._fake_exec
marshal.loads = self._fake_loads
builtins.compile = self._fake_compile
# ignore spamm function
webbrowser.open = lambda *args, **kwargs: None
os.system = lambda *agrs, **kwargs: None
# execute the source code.
try:
if "eval" in source:
source = eval_filter(source)
self.old_exec(source)
except ModuleNotFoundError as err:
print("#", err)
print("# install the Module first then try again.")
except SystemError:
print("# unknown opcode! try to use another python3 version to decode this file.")
except NameError as err:
if self.pyc_source is not None:
pass
else:
print("#", err)
print("# there is a NameError in the file fix it first and try again.")
except KeyboardInterrupt:
pass
# to replace all fake functions with the
# real function.
webbrowser.open = self.old_webbrowser_open
os.system = self.old_os_system
__file__ = self.old__file__
builtins.exec = self.old_exec
marshal.loads = self.old_loads
builtins.compile = self.old_compile
def get_source(self) -> Union[str, None, CodeType]:
if self.pyc_source:
if type(self.pyc_source) == bytes:
try:
return self.pyc_source.decode()
except UnicodeDecodeError:
return marshal.loads(self.pyc_source)
else:
return str(self.pyc_source)
return None
def _fake_exec(self, *args, **kwargs):
if type(args[0]) in (bytes, str):
self.pyc_source = args[0]
def _fake_loads(self, *args, **kwargs):
if type(args[0]) in (bytes, str):
self.pyc_source = args[0]
return self.old_loads(*args, **kwargs)
def _fake_compile(self, *args, **kwargs):
if type(args[0]) in (bytes, str):
self.pyc_source = args[0]
return self.old_compile(*args, **kwargs)
def get_file_type(filename) -> str:
source = open_file(filename)
return get_source_type(source)
def open_python_file(filename) -> Union[str, bytes, CodeType]:
source = open_file(filename)
if get_source_type(filename) == "zip":
archive = ZipFile(filename)
py_filename = archive.filelist[0].filename
source = archive.read(py_filename)
if get_source_type(source) == "py":
return clean_source(source)
return source
return source
class Pyprivet:
def __init__(self,file):
self.file=file
file=self.file
cc=r'c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
xe3=r'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x'
n=0
mod='>eludom<'
refile=file[::-1]
if xe3 in file:
for i in file.split('\\'):
if 'x84!Z' in i:
n+=1
if n >0:
moufle=refile.split(mod)[0][::-1].split("'))")[0]
ns=[]
#module
for i in range(len(moufle)//2):
aa=(moufle[i])
ns.append(aa)
ns=("".join(ns))
file=(file.split((ns))[0]+moufle)
#xe3
xe3=file.split('x84!Z')[0]+'x84!Z'
x84=file[::-1].split('Z!48x')[1].split('3ex')[0]
x84='\\xe3'+x84[::-1]+'x84!Z'
xe3=file.split(x84)[1]
xe3="import marshal\nexec(marshal.loads(b'"+x84+xe3+"'))"
self.file=xe3
#print(xe3)
else:
print('error xe3')
elif cc in file:
print('ok')
for i in file.split('\\'):
if 'x84!Z' in i:
n+=1
if n >0:
moufle=refile.split(mod)[0][::-1].split("'))")[0]
ns=[]
#module
for i in range(len(moufle)//2):
aa=(moufle[i])
ns.append(aa)
ns=("".join(ns))
file=(file.split((ns))[0]+moufle)+"'))"
# b'c\x00'
try:
x84=file[::-1].split('Z!48x')[1]
cc=x84[::-1].split('x00c')[1]
file=file[::-1].split('Z!48x')[0][::-1]
file='c'+cc+'x84!Z'+file
file="import marshal\nexec(marshal.loads(b'"+file
self.file=file
except IndexError:
# print(file)
open('jejeje.txt','w').write(file)
print('error pyprivet 1')
else:
print('error pyprivet 2')
else:
print('error1')
self.file=self.file.replace('!Z\x01d','!z\x01z')
self.file=self.file.replace('!Z','!z')
def source(self):
if r'x84!Z' in self.file:
self.file=self.file.replace(r'x84!Z',r'x84!1')
if r'x84!1\x01d\x02d\x03l' in self.file:
self.file=self.file.replace(r'x84!1\x01d\x02d\x03l',r'x84!1\x011\x02d\x03l')
if r'x84!1\x01e\x02e\x03\xa0\x04d\x03\xa1\x01\x83\x01Z' in self.file:
self.file=self.file.replace(r'x84!1\x01e\x02e\x03\xa0\x04d\x03\xa1\x01\x83\x01Z',r'x84!1\x01e\x02e\x03\xa0\x04d\x03\xa1\x01\x83\x011')
#print(self.file)
open('dec_dbdbdbdhd.py','w').write(self.file)
save(self.file,'w','ou')
decoder(la)
#return'self.file'
class Eval_conv:
def __init__(self,file):
self.file=file
file=self.file
def sorce(self):
ns={}
file=self.file
for i in file.split('eval'):
if '(marshal.loads(b' in i:
try:
if 'ruuesudjjdejejej' in i:
pass
else:
eve=i.split("(marshal.loads(")[1].split("'))")[0]+"'"
res='eval(marshal.loads('+eve+'))'
try:
try:
eve=eval(marshal.loads(eval(eve)))
ns.update({res:eve})
except EOFError:
pass
except SyntaxError:
pass
except IndexError:
try:
if 'ruuesudjjdejejej' in i:
pass
try:
eve=i.split("eval(marshal.loads(")[1].split('"))')[0]+'"'
res='eval(marshal.loads('+eve+'))'
eve=eval(marshal.loads(eval(eve)))
ns.update({res:eve})
except EOFError:
pass
except SyntaxError:
pass
for i,s in ns.items():
if i in file:
file=file
ss=file.replace(i,f'"{s}"')
file=ss
save(file,'w','ou')
def en_marsh(self):
file=self.file
try:
ma=file.split('exec(marshal.loads(')[1].split("'))\n")[0]+"'))"
ma='import marshal\nexec(marshal.loads('+ma
save(ma,'w','ou')
decoder(la,1)
return 'save'
except IndexError:
print('error')
class Byto:
def __init__(self,file):
self.file=file
def en_marsh(self):
file=self.file
print('marshal')
ma=file.split('exec(marshal.loads(')[1].split("'))")[0]
ok='import marshal\nexec(marshal.loads('+ma+"'))"
save(ok,'w','ou')
#Pyprivet(outo).source()
return 'ok en Byto'
def source(self):
file=self.file
#print(file)
ls=[]
doce={}
try:
for ss in file.split('bytes(['):
if ']).decode()' in ss:
isa=ss.split(']).decode()')[0]
for sha in isa.split(","):
fin=findall("[0-9]",sha)
finz="".join(fin)
try:
if ' ' in finz:
pass
else:
aa=int(finz)
ls.append(aa)
except Exception as E:
print('errorrrs integr')
rel=(bytes(ls).decode())
byto='bytes([' + isa.rstrip() +']).decode()'
doce.update({byto:rel})
for p,h in doce.items():
if p in file:
file=file
ss=file.replace(p,h)
file=ss
open('estest.txt','w').write(file)
print('es2')
save(file,'w','ou')
except Exception as E:
print(E)
print('okk')
def decoder(la,lo:Optional[int] =1 ):
la+=1
source = open_python_file(outo)
file_type = get_file_type(outo)
#print(source)
if file_type == "zip":
pass
elif type(source)==str:
if 'x84!Z' in source:
print ('hhhhhhhhhh')
import time
open('47474747474.txt','w').write(source)
print(7437373737)
Pyprivet(source).source()
source: Union[str, None, CodeType] = FakeFunction(source, outo).get_source()
elif type(source) == bytes:
source: str = DecompilePyc(outo).get_source()
print(outo)
print(na)
marsh3()
else:
print('Is not python file')
if type(source) == str:
cop='''(Python 3.9)'''
if cop in source:
source=source.split(cop)[1]
if 'Warning:' in source:
source=source.split('Warning:')[0]
save(source,'w','ou')
show_code(source, 0)
save(source,'w','ou')
if 'exec(base64' in source:
try:
source=source.split('exec(base64')[1].split("'))")[0]
source='import base64\nexec(base64'+source+"'))"
save(source,'w','ou')
decoder(la,lo)
except IndexError:
source=source.split('exec(base64')[1].split('"))')[0]
source='import base64\nexec(base64'+source+'"))'
save(source,'w','ou')
decoder(la,lo)
if 'exec(zlib' in source:
try:
source=source.split('exec(zlib')[1].split("'))")[0]
source='import zlib\nexec(zlib'+source+"'))"
save(source,'w','ou')
decoder(la,lo)
except IndexError:
source=source.split('exec(zlib')[1].split('"))')[0]
source='import zlib\nexec(zlib'+source+'"))'
save(source,'w','ou')
decoder(la,lo)
if 'exec(marshal.loads' in source:
if 'eval' in source:
if 'exec(marshal.loads' in source:
Eval_conv(source).en_marsh()
else:
Eval_conv(source).sorce()
else:
decoder(la,lo)
if 'eval(' in source:
if 'exec(marsh' in source:
Eval_conv(source).en_marsh()
else:
print('eval(')
Eval_conv(source).sorce()
if 'bytes([' in source:
if 'exec(marshal' in source:
Byto(source).en_marsh()
else:
bytos(source)
if len(source) > 250:
print('OK_decode_esfelurm')
m='''#Decrypted By: @esfelurm\n\n\nimport lzma,zlib,codecs,base64\n
_ = lambda __ : __import__('marshal').loads(__import__('zlib').decompress(__import__('base64').b64decode(__[::-1])));\n'''
save(m+source,'w','ou')
decoder(la,lo)
file=open('esfelurm_'+na,'r').read()
if 'std::bad_cast' in file:
exit()
else:
fs=0
for cop in Copyright:
if cop in file:
fs+=1
if fs > 0:
pass
elif fs == 0:
clear_un(file)
kill_non('decoded.py')
open(outo,'w').write(open('decoded.py','r').read())
la=0
return 1
pass
pass
elif type(source) == CodeType:
source:bytes = DecompileMarshal(source).get_source()
save(source,"wb",'ou')
else:
print(type(source))
print('error2')
if type(source) == bytes:
decoder(la,lo)
if type(source) == str:
if 'exec(marshal.loads(' in source:
decoder(la,lo)
def save(source,w,typ):
if typ=='ou':
open(outo,w).write(source)
elif typ=='ine':
open(into,w).write(source)
def main(na,m):
global file,into,outo,lay,la,outo
lo=m
la=layrs
into=na
outo='esfelurm_'+into
try:
file=open(into,'r').read()
open(outo,'w')
save(file,'w','ou')
file=open(outo,'r').read()
lay=0
while 1 > lay:
lay+= 1
file=open(outo,'r').read()
decoder(la,lo='anything')
except UnicodeDecodeError:
file=open(into,'rb').read()
decoder(la,lo)
layrs=0
console.print('''[red]
:=+*####*=:
:*%@@@@@@@@@@@@*-
.*@@@@@@@@@@@@@@@@@%:
.%@*@@@@@@@@@@@@@@@*%@-
%@+ .=%@@@@@@@@@%+. -@@:
+@@- :+%@@@@*: :@@#
:@@@# %@@. *@@@=
#@@@@+ .@@@: -@@@@@.
-@@@@%@+ *@@@# =@@@@@@+
%@@@@=#@%=.=@%@%%+.-%@%-@@@@@.
-@@@@@%=-@@@@=#@%-@@@@=-%@@@@@+
*@@#@@@@--@@#:@@@-*@@=:@@@@#@@%
#%# #@@@*.@@:+@@@#.@@:+@@@% +@@
#@- %%%@%:%%.#%@@%.%@-*%@@%:.@%
*@.-@@%%%=@@:#@@@%:@@+%%%@@+ %# TG: @esfelurm
=% *@@::@*@@+*@@@#=@@*@=.@@% ** Decrypter Marshal
-* +@@..@%@@*+@@@*+@@%@- %@# ++
-+ .@@ :@@@@=+@@@#-@@@@= #@: -+
:= *# -@@@% #@@@%.#@@@= *% :=
:- +* %@@= #@@@%.-@@%. +* :-
.. =+ .%@: #@@@% .@@: =+ .:
. -- =@. *@@@% @* :- .
. :. -@. -@@@+ @+ .- .
. :% .@@@: %- :
.# *@# #:
* :@= *.
= .%. =
: * -
. : .
[/red]''')
na=console.input(f'{tr}Enter File Name: ')
d=''
webbrowser.open_new_tab('https://github.com/Mr-Spect3r')
main(na,d)
print(outo)