-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpy2.py
72 lines (65 loc) · 1.85 KB
/
py2.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
#!/usr/bin/python2
#-*- coding: utf-8 -*-
#marshal py2
'''
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 '3':
exit("[sorry] use python version 2")
# 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'
bannerpy2 = """
{}___
{} ___ ___|{}_ {}{}| {}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(bannerpy2)
print (y+' ['+w+'#'+y+'] '+w+'Example '+y+':'+w+' /sdcard/dfv.py')
file = raw_input(y+' ['+w+'?'+y+'] '+w+'Input your file location'+y+' :'+w+' ')
dfv = 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, '<daffa>', 'exec')
data = marshal.dumps(code)
except TypeError:
sys.exit()
fileout = open(dfv +'enc.py', 'wb')
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 + dfv + 'enc.py\n')