Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- #-*- coding: utf-8 -*-
- #marshal py3
- import marshal, zlib, base64, os, sys, time, rich
- from rich.panel import Panel as nel
- from rich import print as cetak
- ###------------------[ Colorv1 ]---------------------###
- P = '\x1b[1;97m'
- M = '\x1b[1;91m'
- H = '\x1b[1;92m'
- K = '\x1b[1;93m'
- B = '\x1b[1;94m'
- U = '\x1b[1;95m'
- O = '\x1b[1;96m'
- N = '\x1b[0m'
- Z = "\033[1;30m"
- sir = '\033[41m\x1b[1;97m'
- x = '\33[m' # DEFAULT
- white = '\33[0;37m' #PUTIH
- m = '\x1b[1;91m' #RED +
- k = '\033[93m' # KUNING +
- h = '\x1b[1;92m' # HIJAU +
- hh = '\033[32m' # HIJAU -
- u = '\033[95m' # UNGU
- kk = '\033[33m' #
- b = '\33[1;96m' # BIRU -
- p = '\x1b[0;34m' # BIRU +
- ###--------------[ clear ]-----------------###
- def clear_layar():
- os.system('clear')
- ###--------------[ banner ]---------------###
- def banner():
- cetak(nel(f'''
- [bold purple]╔═╗[bold white]╔╗╔╔═╗ [bold purple] ╔═╗[bold white]╦ ╦ Author[bold red] :[bold white] mamang Vindra ID
- [bold purple]║╣ [bold white]║║║║ ─── [bold purple] ╠═╝[bold white]╚╦╝ Coding[bold red] :[bold white] by Vindra XD
- [bold purple]╚═╝[bold white]╝╚╝╚═╝ [bold purple] ╩ [bold white] ╩[bold green] marshal zlib base64 Py3 🐍
- [bold purple] >>[bold white] Example[bold red] :[bold yellow] /sdcard/namefile.py
- [bold purple] >>[bold white] Outfut [bold red] :[bold yellow] /sdcard/namfile/namafile.py
- ''',width=70,padding=(0,5),title=f"Selamat Datang",style=f"bold purple"))
- ###---------------[ main string ]-------------###
- def main():
- clear_layar(); banner();
- file = input (f'{U} >>{P} File:{h} ')
- try:
- x = open(file, "r")
- r = x.read()
- except IOError:
- print (f'\n{U} >>{M} Error No such file or directory{U} >>{H}', file)
- sys.exit()
- sa = compile(r, 'dg','exec')
- sb = marshal.dumps(sa)
- c = zlib.compress(sb)
- d = base64.b64encode(c)
- 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)+'))))')
- text = input (f'{U} >>{P} Outfut :{H} ')
- try:
- g = open(text, 'w')
- except FileNotFoundError:
- exit(f'\n{U} >>{M} File Not Found Eror')
- g.write(e)
- g.close()
- time.sleep(3)
- print(f'\n{U} >>{P} Berhasil Di Encrypt{U}\n >>{P} Tersimpan Di{M} :{H}', text)
- vindra = input (f'\n{U} >>{P} Ingin{H} encrypt{P} lagi? Y/N :{H} ')
- if vindra =="":
- print(f'{U} >> {M}Command not found !')
- sys.exit()
- elif vindra =="y" or vindra =="Y":
- main()
- else:
- if vindra =="n" or vindra =="N":
- print(f'{M} >>{H} Terimakasih{P} abang sayang ;v')
- else:
- print(f'{U} >>{M} Command not found !')
- sys.exit()
- #----------[ jalan nan ]--------#
- if __name__ == '__main__':
- try:os.system('git pull')
- except:pass
- main()
Add Comment
Please, Sign In to add comment