forked from OWASP/ZSC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstaller.py
23 lines (23 loc) · 927 Bytes
/
uninstaller.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
'''
OWASP ZSC | ZCR Shellcoder
https://www.owasp.org/index.php/OWASP_ZSC_Tool_Project
https://github.com/Ali-Razmjoo/OWASP-ZSC
http://api.z3r0d4y.com/
https://lists.owasp.org/mailman/listinfo/owasp-zsc-tool-project [ owasp-zsc-tool-project[at]lists[dot]owasp[dot]org ]
'''
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. How do you want to UNINSTALL!?'+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.logo()
print (color.color('green')+'Removing Files'+color.color('white'))
os.system('rm -rf /usr/share/owasp_zsc /usr/bin/zsc')
print (color.color('green')+'Files Removed!'+color.color('white'))
start.sig()