-
Notifications
You must be signed in to change notification settings - Fork 8
/
py3.py
74 lines (66 loc) · 1.91 KB
/
py3.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
#!/usr/bin/python3
#-*- coding: utf-8 -*-
#marshal py3
'''
PyMarshal - Compile Python Script
This project was created by Dfv47 with Black Coder Crush.
Copyright 12 - 07 - 2k19 @m_d4fv
'''
try:
import os,sys,time,marshal
except Exception as F:
exit("[ModuleErr] %s"%(F))
if sys.version[0] in '2':
exit("[sorry] use python version 3")
# Color
a='\033[1;30m'
r='\033[1;31m'
g='\033[32;1m'
y='\033[1;33m'
c='\033[1;36m'
w='\033[1;37m'
n='\033[0;00m'
br='\033[91;7m'
bannerpy3 = """
{}___
{} ___ _ |{}_ {}{}| {}Author {}:{} Dfv47
{}| . | | |{}_ {}{}| {}Code {}:{} Python
{}| _|_ |{}___{}{}| {}Version {}:{} v.5.0
{}|_| |___| {}*{} https://github.com/md4fv
""".format(r,y,br,n,y,w,r,w,y,br,n,y,w,r,w,y,br,n,y,w,r,w,y,r,a)
'''
Coded : @m_d4fv
Author : Dfv47
Team : Black Coder Crush
Phone : 6282223108828
Email : daffamfthhsn21@gmail.com
Thanks : ZoneExploiter & CytoXploit
'''
os.system('clear')
try:
print(bannerpy3)
print (y+' ['+w+'#'+y+'] '+w+'Example '+y+':'+w+' /sdcard/dfv.py')
file = input(y+' ['+w+'?'+y+'] '+w+'Input your file location'+y+' :'+w+' ')
o = file.replace('.py', '')
except KeyboardInterrupt:
sys.exit()
else:
try:
strng = open(file, 'r').read()
except IOError:
print (r+'\n ['+w+'!'+r+'] '+r+'[ '+w+'Error '+r+'] '+w+'No such file or directory '+r+': '+w+'"'+dfv+'"\n')
sys.exit()
try:
code = compile(strng,'','exec')
data = marshal.dumps(code)
except TypeError:
print (R + ' ['+W+'!'+R+'] '+R+'[ '+W+'File already to compiled\n')
sys.exit()
fileout = open(o + 'enc.py', 'w')
fileout.write('#Compiled By DfvTools\n')
fileout.write('#https://github.com/md4fv\n')
fileout.write('import marshal\n')
fileout.write('exec(marshal.loads(' + repr(data) + '))')
fileout.close()
time.sleep(3)
print (y+'\n ['+w+'+'+y+'] '+w+'File succes to compile '+y+': ' + w + o + 'enc.py\n')