OBF-XIn

180.241.240.122-/storage/emulated/0/OK/OK/run.py.py

May 13th, 2023
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.78 KB | None | 0 0
  1. #!/usr/bin/python3
  2. #-*- coding: utf-8 -*-
  3. #marshal py3
  4.  
  5. import marshal, zlib, base64, os, sys, time, rich
  6. from rich.panel import Panel as nel
  7. from rich import print as cetak
  8.  
  9. ###------------------[ Colorv1 ]---------------------###
  10. P = '\x1b[1;97m'
  11. M = '\x1b[1;91m'
  12. H = '\x1b[1;92m'
  13. K = '\x1b[1;93m'
  14. B = '\x1b[1;94m'
  15. U = '\x1b[1;95m'
  16. O = '\x1b[1;96m'
  17. N = '\x1b[0m'
  18. Z = "\033[1;30m"
  19. sir = '\033[41m\x1b[1;97m'
  20. x = '\33[m' # DEFAULT
  21. white = '\33[0;37m' #PUTIH
  22. m = '\x1b[1;91m' #RED +
  23. k = '\033[93m' # KUNING +
  24. h = '\x1b[1;92m' # HIJAU +
  25. hh = '\033[32m' # HIJAU -
  26. u = '\033[95m' # UNGU
  27. kk = '\033[33m' #
  28. b = '\33[1;96m' # BIRU -
  29. p = '\x1b[0;34m' # BIRU +
  30.  
  31. ###--------------[ clear ]-----------------###
  32. def clear_layar():
  33.     os.system('clear')
  34.  
  35. ###--------------[ banner ]---------------###
  36. def banner():
  37.     cetak(nel(f'''
  38. [bold purple]╔═╗[bold white]╔╗╔╔═╗      [bold purple] ╔═╗[bold white]╦ ╦ Author[bold red] :[bold white] mamang Vindra ID
  39. [bold purple]║╣ [bold white]║║║║    ─── [bold purple] ╠═╝[bold white]╚╦╝ Coding[bold red] :[bold white] by Vindra XD
  40. [bold purple]╚═╝[bold white]╝╚╝╚═╝      [bold purple] ╩  [bold white] ╩[bold green]  marshal zlib base64 Py3 🐍
  41. [bold purple] >>[bold white] Example[bold red] :[bold yellow] /sdcard/namefile.py
  42. [bold purple] >>[bold white] Outfut [bold red] :[bold yellow] /sdcard/namfile/namafile.py
  43. ''',width=70,padding=(0,5),title=f"Selamat Datang",style=f"bold purple"))
  44.  
  45. ###---------------[ main string ]-------------###
  46. def main():
  47.     clear_layar();  banner();
  48.     file = input (f'{U} >>{P} File:{h} ')
  49.     try:
  50.  
  51.         x = open(file, "r")
  52.         r = x.read()
  53.     except IOError:
  54.         print (f'\n{U} >>{M} Error No such file or directory{U} >>{H}', file)
  55.         sys.exit()
  56.     sa = compile(r, 'dg','exec')
  57.     sb = marshal.dumps(sa)
  58.     c = zlib.compress(sb)
  59.     d = base64.b64encode(c)
  60.     e = ('#!/usr/bin/python3\n# Encrypt By Vindra ID\n# Di Buat Pada Tnggal 11:mei:2023\n# https://github.com/Dra-ID/ENC-PY3\n# youtube channel Vindra ID\nimport marshal,zlib,base64\nexec(marshal.loads(zlib.decompress(base64.b64decode('+str(d)+'))))')
  61.     text = input (f'{U} >>{P} Outfut :{H} ')
  62.     try:
  63.         g = open(text, 'w')
  64.     except FileNotFoundError:
  65.         exit(f'\n{U} >>{M} File Not Found Eror')
  66.     g.write(e)
  67.     g.close()
  68.     time.sleep(3)
  69.     print(f'\n{U} >>{P} Berhasil Di Encrypt{U}\n >>{P} Tersimpan Di{M} :{H}', text)
  70.     vindra = input (f'\n{U} >>{P} Ingin{H} encrypt{P} lagi? Y/N :{H} ')
  71.  
  72.     if vindra =="":
  73.             print(f'{U} >> {M}Command not found !')
  74.             sys.exit()
  75.     elif vindra =="y" or vindra =="Y":
  76.             main()
  77.     else:
  78.         if vindra =="n" or vindra =="N":
  79.                 print(f'{M} >>{H} Terimakasih{P} abang sayang ;v')
  80.         else:
  81.                 print(f'{U} >>{M} Command not found !')
  82.                 sys.exit()
  83.  
  84. #----------[ jalan nan ]--------#
  85. if __name__ == '__main__':
  86.     try:os.system('git pull')
  87.     except:pass
  88.     main()
  89.  
Add Comment
Please, Sign In to add comment