forked from 0xInfection/TIDoS-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtidos_main.py
More file actions
116 lines (90 loc) · 3.69 KB
/
Copy pathtidos_main.py
File metadata and controls
116 lines (90 loc) · 3.69 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#-:-:-:-:-:-:-:-:-:-:-:-:#
# TIDoS Framework #
#-:-:-:-:-:-:-:-:-:-:-:-:#
#Author: @_tID
#This module requires TIDoS Framework
#https://github.com/0xInfection/TIDoS
from __future__ import print_function
import sys
import platform
import os
import time
import warnings
from random import randint
from os import path
from time import sleep
from logging import getLogger, ERROR
getLogger("scapy.runtime").setLevel(ERROR)
warnings.filterwarnings("ignore")
# All module imports
from core.Core.inputin import *
from core.Core.banner import *
from core.Core.dispmenu import *
from core.Core.agree import *
from core.Core.loadstyle import *
from core.Core.bannerbelow import *
from core.Auxillaries.auxil import *
from core.Core.colors import *
from core.Exploitation.exploits import *
from core.Footprinting.footprint import *
from core.Enumeration.scanenum import *
from core.Vulnlysis.vuln import *
def tidos_main(): # To be called by external
try:
agree() # the agreement (to appear only at time of installation)
loadstyle() # some swag stuff :p
banner() # main banner
bannerbelow() # banner 2
web = inputin() # take the website as input
except Exception as e:
print(R+' [-] Exception encountered!')
print(R+' [-] Exception : '+str(e))
sys.exit(1)
print(P+' [+] Okay, so what to start with?') # lets start
time.sleep(1)
def tidosmain(web): # this is to be iterated repeatedly
while True:
try:
os.system('clear')
dispmenu() # displaying the options
zop = raw_input(''+GR+' [#] \033[1;4mTID\033[0m'+GR+' :> ' + color.END)
zap = zop.strip()
if zap == '1': # 1 - OSINT + Recon
print(G+"\n [+] Module loaded : Reconnaissance")
footprint(web)
elif zap == '2': # 2 - Scanning + Enumeration
print(G+'\n [+] Module loaded : Scanning & Enumeration')
scanenum(web)
elif zap == '3': # 3 - Vulnerability Analysis
print(G+'\n [+] Module loaded : Vulnerability Analysis')
vuln(web)
elif zap == '4': # Exploitation
print(G+'\n [+] Module loaded : Exploits Castle')
exploits(web)
elif zap == '5': # Auxillary modules
print(G+'\n [+] Module loaded : Auxillaries')
auxil(web)
elif zap == '99': # Say Goodbye!
print(R+'\n [-] Exiting...')
time.sleep(0.6)
print(O+' [+] Goodluck mate, Alvida!\n')
sys.exit(0)
else: # Troll for not selecting right option :p
dope = ['You high dude?', 'Sorry fam! You just typed shit']
print(R+' [-] ' + dope[randint(0,1)])
time.sleep(0.5)
pass
except KeyboardInterrupt: # Incase user wants to quit
print(R+"\n [-] " + color.UNDERLINE+ "User Interruption detected!"+color.END)
time.sleep(0.4)
print(C+' [+] Alvida, see ya!\n')
sys.exit(0)
except Exception as e: # Global Error Handling Stuff
print(R+' [-] Unhandled runtime exception while execution...')
print(R+' [-] Exception Encountered: '+e.__str__())
print(R+' [-] Returning back to main menu...')
time.sleep(1)
pass # (If user runs into a error, that would not quit this tool)
tidosmain(web) # The true start of this program