Advertisement
OBF-XIn

112.215.171.162-/sdcard/SCRIPT/encrypt_py3.py.py

Mar 28th, 2023
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.34 KB | None | 0 0
  1. #!/usr/bin/python3
  2. #-*- coding: utf-8 -*-
  3. #marshal py3
  4. import os,sys,time,marshal
  5. from rich.panel import Panel as nel
  6. from rich import print as cetak
  7.  
  8. if sys.version[0] in '2':
  9.         exit("[sorry] use python version 3")
  10.  
  11. sys.stdout.write('\x1b]2; Encrypt Vindra XD\x07')
  12. ###------------------[ Colorv1 ]---------------------###
  13. P = '\x1b[1;97m'
  14. M = '\x1b[1;91m'
  15. H = '\x1b[1;92m'
  16. K = '\x1b[1;93m'
  17. B = '\x1b[1;94m'
  18. U = '\x1b[1;95m'
  19. O = '\x1b[1;96m'
  20. N = '\x1b[0m'
  21. Z = "\033[1;30m"
  22. sir = '\033[41m\x1b[1;97m'
  23. x = '\33[m' # DEFAULT
  24. white = '\33[0;37m' #PUTIH
  25. m = '\x1b[1;91m' #RED +
  26. k = '\033[93m' # KUNING +
  27. h = '\x1b[1;92m' # HIJAU +
  28. hh = '\033[32m' # HIJAU -
  29. u = '\033[95m' # UNGU
  30. kk = '\033[33m' # KUNING -
  31. b = '\33[1;96m' # BIRU -
  32. p = '\x1b[0;34m' # BIRU +
  33.  
  34. os.system('clear')
  35. cetak(nel('Subscribe Channel Gw dulu bosh\n\n1 subscribe 1000 Pahala 🙏\n'))
  36. os.system('xdg-open https://youtube.com/@vindradesign')
  37. time.sleep(3)
  38. input('  KLIK\x1b[1;92m ENTER\x1b[1;97m UNTUK MELANJUTKAN')
  39. os.system('xdg-open https://youtube.com/@vindradoang')
  40. time.sleep(3)
  41.  
  42.  
  43. bannerpy = """
  44. \x1b[1;91m     ╔╦╗┌─┐┬─┐┌─┐┬ ┬┌─┐┬
  45. \x1b[1;97m     ║║║├─┤├┬┘└─┐├─┤├─┤│
  46. \x1b[1;97m     ╩ ╩┴ ┴┴└─└─┘┴ ┴┴ ┴┴─┘ Update V3
  47. \x1b[1;97m     Creator\x1b[1;91m :\x1b[1;97m VindraXD
  48. \x1b[1;97m     Youtube\x1b[1;91m :\x1b[1;97m Vindra ID
  49. \x1b[1;97m     Facebok\x1b[1;91m :\x1b[1;97m Vindra Doang\n
  50. """
  51.  
  52. def bannerpy3():
  53.           try:
  54.               os.system('clear')
  55.               os.popen('play-audio play.mp3')
  56.               print(bannerpy)
  57.               cetak(nel ('[-] Contoh > /sdcard/file.py'))
  58.               file = input ('  [-] File Kamu : ')
  59.               o = file.replace('.py', '')
  60.           except KeyboardInterrupt:
  61.               sys.exit()
  62.           else:
  63.               try:
  64.                   strng = open(file, 'r').read()
  65.               except IOError:
  66.                   print ('\n Error No such file or directory\n')
  67.                   sys.exit()
  68.               try:
  69.                   code = compile(strng,'','exec')
  70.                   data = marshal.dumps(code)
  71.               except TypeError:
  72.                   print ('File already to compiled\n')
  73.                   sys.exit()
  74.  
  75.           fileout = open(o + '_enc.py', 'w')
  76.           fileout.write('#Compiled By VINDRA-XD\n')
  77.           fileout.write('#https://github.com/Dra-ID\n#Youtube: Vindra ID\n')
  78.           fileout.write('import marshal\n')
  79.           fileout.write('exec(marshal.loads(' + repr(data) + '))')
  80.           fileout.close()
  81.           time.sleep(3)
  82.           print ('\n  [-]File Succes Di Compiled : ' + u + o + '_enc.py\n')
  83.           time.sleep(3)
  84.           vindra = input ('  [-] Ingin encrypt lagi? [Y/N]')
  85.           if vindra =="":
  86.                       cetak(nel('Command not found !'))
  87.                       sys.exit()
  88.           elif vindra =="y" or vindra =="Y":
  89.                       bannerpy3()
  90.           else:
  91.                       if vindra =="n" or vindra =="N":
  92.                                   cetak(nel('   > Terimakasih abang sayang ;v'))
  93.                       else:
  94.                                   cetak(nel('   Command not found !'))
  95.                                   sys.exit()
  96.  
  97.  
  98. if __name__=='__main__':
  99.         try:os.system('git pull')
  100.         except:pass
  101.         try:os.system('pkg install play-audio')
  102.         except:pass
  103.         bannerpy3()
  104.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement