-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstaller.py
28 lines (27 loc) · 1.12 KB
/
installer.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
#!/usr/bin/env python
'''
OWASP ZSC | ZCR Shellcoder
ZeroDay Cyber Research
Z3r0D4y.Com
Ali Razmjoo
'''
import os
import sys
from core import start
from core import color
if 'linux' in sys.platform or 'darwin' in sys.platform:
os.system('clear')
else:
sys.exit(color.color('red')+'Sorry, This version of software just could be INSTALL on linux/osx.'+color.color('reset'))
if os.geteuid() is not 0:
sys.exit(color.color('red')+'Sorry, you most run this file as root.'+color.color('reset'))
start.zcr()
executor = '''#!/bin/bash\npython /usr/share/owasp_zsc/zsc.py "$@"'''
print (color.color('cyan')+'Building Commandline')
commandline = open('/usr/bin/zsc','w')
commandline.write(executor)
commandline.close()
print (color.color('green')+'Copying Files'+color.color('white'))
os.system('rm -rf /usr/share/owasp_zsc && mkdir /usr/share/owasp_zsc && cp -r * /usr/share/owasp_zsc/ && chmod +x /usr/share/owasp_zsc/zsc.py && chmod +x /usr/bin/zsc')
print (color.color('yellow') + '\nNow you can remove this folder\nfiles copied in /usr/share/owasp_zsc.\nto run zcr shellcoder please use "zsc" command line\n'+color.color('reset'))
start.sig()