-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlKali.py
175 lines (164 loc) · 7.51 KB
/
lKali.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#!/usr/bin/env python
#-*- coding: utf-8 -*-
################################################################################
# #
# #
# lKali #
# Lazy script for kali linux #
# By: Assassin umz #
# #
# Follow me : #
# •YouTube: https://youtube.com/c/pixiters #
# •Discord: https://discord.gg/3nfQadt #
# •Website: http://pixiters.ga #
# •GitHub: https://github.com/Assassinumz #
# #
################################################################################
import os, wget, platform
from time import sleep
from sys import exit
from urllib import urlopen
red= '\033[91m'
green= '\033[92m'
cyan= '\033[36m'
bold= '\033[1m'
end= '\033[0m'
input= '\33[38;5;47m' + '\033[1m' + 'lKali:~# ' + '\033[0m'
def clr():
os.system('clear')
def head():
clr()
print'''{1}{2}
▄█ ▄█ ▄█▄ ▄████████ ▄█ ▄█
███ ███ ▄███▀ ███ ███ ███ ███
███ ███▐██▀ ███ ███ ███ ███▌
███ ▄█████▀ ███ ███ ███ ███▌
███ ▀▀█████▄ ▀███████████ ███ ███▌
███ ███▐██▄ ███ ███ ███ ███
███▌ ▄ ███ ▀███▄ ███ ███ ███▌ ▄ ███
█████▄▄██ ███ ▀█▀ ███ █▀ █████▄▄██ █▀
▀ ▀ ▀{0}
{2}By: Assassin umz{0}
Follow me:
{1}•{0}YouTube: {3}https://youtube.com/c/pixiters{0}
{1}•{0}Website: {3}http://pixiters.ga{0}\n'''.format(end, red, bold, cyan)
def finish():
head()
print('{1}{2}Until next time...{0}').format(end, bold, green)
exit(0)
def network():
head()
try:
urlopen('https://duckduckgo.com')
return True
except:
return False
def kernel():
network()
if network() == False:
print ('{0}Network failure. Please check your network and try again.').format(red)
exit(0)
head()
choose = raw_input('1{1}]{0} update\n2{1}]{0} upgrade\n3{1}]{0} dist-upgrade\n4{1}]{0} update all\n0{1}]{0} Main Menu\n\n'.format(end, red)+ input)
clr()
if choose == '0':
main()
elif choose == '1':
os.system('apt-get update -y')
raw_input('\n{1}{2}(Hit Return to coninue){0}'.format(end, bold, green))
elif choose == '2':
os.system('apt-get upgrade -y')
raw_input('\n{1}{2}(Hit Return to coninue){0}'.format(end, bold, green))
elif choose == '3':
os.system('apt-get dist-upgrade -y')
raw_input('\n{1}{2}(Hit Return to coninue){0}'.format(end, bold, green))
elif choose == '4':
os.system('apt-get update -y')
os.system('apt-get upgrade -y')
os.system('apt-get dist-upgrade -y')
os.system('apt-get autoremove')
raw_input('\n{1}{2}(Hit Return to coninue){0}'.format(end, bold, green))
else:
raw_input('\n{1}Please choose a valid option {2}(Hit Return to coninue){0}'.format(end, bold, green))
kernel()
kernel()
def tools():
head()
print('[{2}*{0}]{1}Clones into /opt by default{0}\n\n'.format(end, bold, green))
choose = raw_input('1{1}]{0} SPG (Simple-Payload-Generator)\n2{1}]{0} cupp (Common)\n3{1}]{0} SocialFish\n4{1}]{0} torghost\n0{1}]{0} Main Menu\n\n'.format(end, red) + input)
if choose == '0':
main()
elif choose == '1':
if os.path.isdir('/opt/simple-payload-generator') == False:
os.system('cd /opt && git clone https://github.com/Assassinumz/simple-payload-generator.git')
os.system('gnome-terminal -x bash -c "python /opt/simple-payload-generator/spg.py; bash"')
elif choose == '2':
if os.path.isdir('/opt/cupp') == False:
os.system('cd /opt && git clone https://github.com/Mebus/cupp.git')
os.system('gnome-terminal -x bash -c "python /opt/cupp/cupp.py -i; bash"')
elif choose == '3':
if os.path.isdir('/opt/SocialFish') == False:
os.system('apt-get install python3 -y')
os.system('cd /opt && git clone https://github.com/UndeadSec/SocialFish.git')
os.system('cd /opt && pip install requirements.txt')
os.system('gnome-terminal -x bash -c "python3 /opt/SocialFish/SocialFish.py; bash"')
elif choose == '4':
if os.path.isdir('/opt/torghost') == False:
os.system('cd /opt && git clone https://github.com/susmithHCK/torghost.git')
os.system('cd /opt && ./install.sh')
os.system('gnome-terminal -x bash -c "torghost start; bash"')
else:
raw_input('{1}Please choose a valid option {2}(Hit Return to coninue){0}'.format(end, bold, green))
tools()
tools()
def ngrok():
network()
if network() == False:
print ('{0}Network failure. Please check your network and try again.').format(red)
exit(0)
if os.path.isfile('/opt/ngrok') == 0:
print("{0}Downloading Ngrok...{1}").format(green, end)
if platform.architecture == "32bit":
wget.download('https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.tgz')
os.system('tar -xf ngrok-stable-linux-386.tgz')
os.system('mv ngrok /opt')
os.system('rm ngrok-stable-linux-386.tgz')
else:
wget.download('https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.tgz')
os.system('tar -xf ngrok-stable-linux-amd64.tgz')
os.system('mv ngrok /opt')
os.system('rm ngrok-stable-linux-amd64.tgz')
os.system('gnome-terminal -x bash -c "cd /opt && ./ngrok http 80; bash"')
main()
def main():
head()
choose = raw_input('if{1}]{0} ifconfig\nmsfs{1}]{0} Start MSF Services\nmsf{1}]{0} Start MSF Console\ntor{1}]{0} Install and start tor service\nngrok{1}]{0} Start Ngrok on port 80\n1{1}]{0} Kernel\n2{1}]{0} Tools\n0{1}]{0} Exit\n\n'.format(end, red) + input)
if choose == '0':
finish()
elif choose == 'if':
clr()
os.system('ifconfig')
raw_input('{1}{2}(Hit Return to continue){0}'.format(end, bold, green))
elif choose == 'msfs':
os.system('service postgresql start')
os.system('msfdb start')
sleep(3)
elif choose == 'msf':
os.system('gnome-terminal -x msfconsole')
elif choose == 'tor':
os.system('apt-get install tor')
os.system('gnome-terminal -x tor')
elif choose == 'ngrok':
ngrok()
elif choose == '1':
kernel()
elif choose == '2':
tools()
else:
raw_input('{1}Please choose a valid option {2}(Hit Return to continue){0}'.format(end, bold, green))
main()
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
finish()