-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathgloom.py
277 lines (225 loc) · 9.01 KB
/
gloom.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
"""
Welcome To Gloom
================
Welcome to Gloom-Framework v.1.8. Your gonna love the envirenment.
Gloom is an open source Penetration Testing Framework designed for Linux systems.
This piece if software was developed by Josh(Yeah, Just Josh). The Following will be some basic info.
!DISCLAIMER!
============
Gloom is meant for security researching purposes only and should be used
simply for good not for bad. The Developer of this tool is not to be held responsible
for misuse of this software. Please use wisely. Gloom is in it's early stage of development
so please report any issues to the gitHub Repository.
- Gloom-Framework Developer,
Josh
"""
#LIBS AND MODS#
###############
import os
import sys
import time
import pythonwhois
import datetime
sys.path.append('core/')
from adminfinder import *
from geoip import *
from landiscover import *
from listener import *
from wafdetection import *
from ipresolver import *
from portscanner import *
from banner import *
from wifijammer import *
from payloadgen import *
from fuzzer import *
from checkbreach import *
from anon_email import *
from android_attack import *
try:
from termcolor import colored, cprint
except ImportError as ie:
print(str(ie))
class PlatformCheck(object):
def OSCheck(self):
if sys.platform == 'win32':
cprint("[-] Windows 32-Bit Detected! Gloom Framework is Unix/Linux Based!", 'red')
if sys.platform == 'win64':
cprint("[-] Windows 64-Bit Detected! Gloom Framework is Unix/Linux Based!", 'red')
else:
cprint("[!] Unix/Linux Kernel Detected!", 'green')
checkpltf = PlatformCheck()
os.system('clear')
checkpltf.OSCheck()
time.sleep(1.5)
os.system('clear')
class checkRoot(object):
def sudoCheck(self):
if not os.geteuid() == 0:
os.system('clear')
print("[gloom_error]" + colored(" This Script Must be Run as Root!", 'red'))
sys.exit(1)
checksudo = checkRoot()
checksudo.sudoCheck()
class GloomMain(object):
def on_load(self):
__version__ = '1.8'
__author__ = "Josh"
__date__ = datetime.datetime.now()
__tools__ = "16"
gloom_tools = [
'admin_panel_finder',
'web_whois',
'ip_geolocation',
'discover_lan_devices',
'website_ip_resolver',
'wifi_jammer',
'listener',
'waf_scanning',
'port_scanner',
'payload_generator'
'alot_more_tools'
]
try:
gloom_prompt = raw_input("\n[" + colored('gloom', 'red') + "] ")
if gloom_prompt == 'exit':
sys.exit(0)
if gloom_prompt == 'clear':
os.system('clear')
return gloom_main.on_load()
if gloom_prompt == 'info':
print("Developer: " + colored(__author__, 'green'))
print("Version: " + colored(__version__, 'green'))
print("Date: " + colored(__date__, 'green'))
print("Tools: " + colored(__tools__, 'blue'))
return gloom_main.on_load()
if gloom_prompt == 'load':
load_mod = gloom_prompt + ''
if load_mod not in gloom_tools:
print("[gloom_error] " + colored("Failed To Load Module", 'red'))
return gloom_main.on_load()
elif load_mod in gloom_tools:
print(gloom_prompt + '(' + colored(load_mod, 'red') + ')')
if gloom_prompt == 'help':
print "\n"
print "\t\t|Core Commands|"
print "=" * 40
print "help :: " + colored("Show This List Again", 'blue')
print "clear :: "+ colored("Clear Screen", 'blue')
print "exit :: " + colored("Leaves Gloom Framework", 'blue')
print "info :: " + colored("Shows Tool Information", 'blue')
print "\n"
print "\t\t|Tools|"
print "=" * 40
print "android_attack :: " + colored("Sends an android payload via. Email and Spawns a meterpreter shell.", 'blue')
print "admin_panel_finder :: " + colored("Find Website Admin Panels", 'blue')
print "ip_geolocation :: " + colored("Geolocate an IP Address", 'blue')
print "web_whois :: " + colored("Gather WHOIS Information on a Target", 'blue')
print "\n"
print "discover_lan_devices :: " + colored("Detect Users/Devices on LAN", 'blue')
print "website_ip_resolver :: " + colored("Get IP Address of Website", 'blue')
print "payload_generator :: " + colored("Generate Windows Payload", 'blue')
print "\n"
print "wifi_jammer :: " + colored("Wireless Deauthentication Attack", 'blue')
print "listener :: " + colored("Listen For Connections on Network", 'blue')
print "check_email_breach :: " + colored("Check if an Email has Been Comprimised", 'blue')
print "\n"
print "waf_scanning :: " + colored("Scan for Website Firewall", 'blue')
print "port_scanner :: " + colored("Scan for Open Ports", 'blue')
print "anon_email :: " + colored("Send An Anonymous Email", 'blue')
print "\n"
print "\t\t|Fuzzing|"
print "=" * 40
print "tcp_fuzzer :: " + colored("Fuzz Applications via. TCP(Port 443)", 'blue')
print "ftp_fuzzer :: " + colored("Fuzz Applications via. FTP(Port 21)", 'blue')
print "http_fuzzer :: " + colored("Fuzz Applications via. HTTP(Port 80)", 'blue')
return gloom_main.on_load()
elif gloom_prompt == 'admin_panel_finder':
findAdmin()
return gloom_main.on_load()
elif gloom_prompt == 'ip_geolocation':
geolocate()
return gloom_main.on_load()
elif gloom_prompt == 'discover_lan_devices':
DiscoverLiveHosts()
return gloom_main.on_load()
elif gloom_prompt == 'website_ip_resolver':
ResolveIP()
return gloom_main.on_load()
elif gloom_prompt == 'web_whois':
os.system('clear')
CORE_STRING = colored("[web_whois]", 'blue')
TARGET = raw_input(CORE_STRING + " Website> ")
domains = [TARGET]
for dom in domains:
details = pythonwhois.get_whois(dom)
print details['contacts']['registrant']
return gloom_main.on_load()
elif gloom_prompt == 'wifi_jammer':
RunScapyBasicDeauthentication()
return gloom_main.on_load()
elif gloom_prompt == 'listener':
sockListen()
sockAccept()
return gloom_main.on_load()
elif gloom_prompt == 'waf_scanning':
RunDetection()
return gloom_main.on_load()
elif gloom_prompt == 'port_scanner':
PortScanner()
return gloom_main.on_load()
elif gloom_prompt == 'payload_generator':
payload = EXEPayloads()
payload.GetInputVariables()
payload.Meterpreter()
return gloom_main.on_load()
elif gloom_prompt == 'tcp_fuzzer':
fuzztcp = Fuzzer()
fuzztcp.TCPFuzzer()
return gloom_main.on_load()
elif gloom_prompt == 'ftp_fuzzer':
fuzzftp = Fuzzer()
fuzzftp.FTPFuzzer()
return gloom_main.on_load()
elif gloom_prompt == 'http_fuzzer':
fuzzhttp = Fuzzer()
fuzzhttp.HTTPFuzzer()
return gloom_main.on_load()
elif gloom_prompt == 'check_email_breach':
breacher = Breach()
CORE_STRING = colored("[check_email_breach]", 'blue')
breacher.RunMainCheck(raw_input(CORE_STRING + " Email> "))
return gloom_main.on_load()
elif gloom_prompt == 'anon_email':
os.system('clear')
anon = AnonEmail()
anon.SendAnonEmail()
return gloom_main.on_load()
elif gloom_prompt == 'android_attack':
attack = SMS()
attack.do_login()
attack.do_payload()
attack.do_sms_mail()
attack.do_metasploit()
return gloom_main.on_load()
else:
print("[gloom_error] " + colored("Unknown Command/Argument!", 'red'))
return gloom_main.on_load()
except KeyboardInterrupt:
cprint("\n[!] You Pressed Ctrl + C! Next time type 'exit' To Quit.", 'red')
sys.exit(1)
except:
pass
def SecondaryBanner():
cprint("[] Gloom Framework []", 'blue')
time.sleep(0.1)
cprint("[] @joshDelta []", 'green')
time.sleep(0.1)
cprint("[] <-Partner-> []", 'green')
time.sleep(0.1)
cprint("[] http://unrealsecurity.net []", 'blue')
time.sleep(1.5)
if __name__ == "__main__":
load_banner()
SecondaryBanner()
gloom_main = GloomMain()
gloom_main.on_load()