forked from softkrates/Devploit-1
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathupdate.py
56 lines (43 loc) Β· 1.91 KB
/
update.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
#!/usr/bin/env python2
#-*- coding: utf-8 -*-
#
# author : Joker-Security
# Tested on Kali Linux / lxle-linux
# Simple script for install Devploit
__author__ = "Joker-Security"
import os
import pip
banner = '''
\033[92m
βββββββ βββββββββββ ββββββββββ βββ βββββββ ββββββββββββ
βββββββββββββββββββ ββββββββββββββ βββββββββββββββββββββ
βββ βββββββββ βββ ββββββββββββββ βββ ββββββ βββ
βββ βββββββββ ββββ βββββββββββ βββ βββ ββββββ βββ
ββββββββββββββββ βββββββ βββ ββββββββββββββββββββ βββ
βββββββ ββββββββ βββββ βββ ββββββββ βββββββ βββ βββv2.3
Update Script for Devploit
Created by Joker-Security [dev-labs]
'''
print banner
content = """
#!/bin/bash
cd /usr/share/Devploit
python Devploit "$@"
"""
def main():
if os.name != "nt":
if os.getuid() == 0:
os.system("git clone http://github.com/joker25000/Devploit /usr/share/Devploit")
for i in ["requests", "bs4"]:
pip.main(["install", i])
file = open("/usr/bin/Devploit", "w")
file.write(content)
file.close()
os.system("chmod +x /usr/bin/Devploit")
print "\n\n[+] Update finished, Run \033[91m'Devploit'\033[92m In Terminal!"
else:
print "Run as root!"
else:
print "This script doesn't work on Windows!"
if __name__ == "__main__":
main()