-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathwsf-update.py
More file actions
21 lines (18 loc) · 764 Bytes
/
wsf-update.py
File metadata and controls
21 lines (18 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
#
# WebSploit FrameWork Update Module
# Created By 0x0ptim0us (Fardin Allahverdinazhand)
# Email : 0x0ptim0us@Gmail.Com
import subprocess
import os
from core import wcolors
def update_websploit():
print wcolors.color.GREEN + "[*]Updating Websploit framework, Please Wait ..." + wcolors.color.ENDC
try:
subprocess.Popen("cd /tmp;git clone https://github.com/websploit/websploit.git;cp -R websploit/ /usr/share;rm -rf /tmp/websploit/", stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True).wait()
except Exception, e:
print wcolors.color.RED + "[!] Update Failed."+ wcolors.color.ENDC
pass
print wcolors.color.GREEN + "[*]Update was completed successfully." + wcolors.color.ENDC
if __name__ == "__main__":
update_websploit()