-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.py
110 lines (96 loc) · 4.07 KB
/
main.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
import functions
import os
from modules import whoiis,ddns,googlemap,subdomain,plugins,admin_finder,site_info,port_scanner,http_header
from pprint import pprint
from sys import platform
GREEN = functions.GREEN
RED = functions.RED
BLUE = functions.BLUE
RESET = functions.RESET
WHITE = functions.WHITE
def clear():
if platform == "linux" or platform == "linux2":
os.system('clear')
elif platform == "win32":
os.system('cls')
while True :
clear()
functions.Tools.banner(None)
functions.Tools.options(None)
try:
num = input(f" {RED} [+] {WHITE} Enter a number from the list : {RESET}")
if num == '1' : ######################### whois
clear()
domain = input(f" {RED} [**] {WHITE} Enter a Domain : {RESET}")
whois = whoiis.Information(domain)
res_domain = whois.Domain_info(domain)
res_Server = whois.Server_info(domain)
print(f" {RED} Result of Domain : {GREEN}")
pprint(res_domain)
print(f" {RED} \n Result of Server : {GREEN} ")
pprint(res_Server)
input()
elif num == '2' : ########################## Dns
clear()
domain = input(f" {RED} [**] {WHITE} Enter a Domain : {RESET}")
Dns = ddns.Dns_Checker(domain)
Dns.options()
num = input(f" {RED} [**] {WHITE} Enter a number from list : {RESET}")
if num == '1' :
res = Dns.A_record(domain)
print(f" {GREEN} [+] ip ==> {WHITE} {res}")
input()
elif num == '2' :
res = Dns.Cname(domain)
print(f" {GREEN} [+] ip ==> {WHITE} {res}")
input()
elif num == '3' :
res = Dns.Mx_record(domain)
print(f'{GREEN} Host {res.exchange} has preference {res.preference} {RESET}')
input()
elif num == '00' :
continue
elif num == '3' : ############ Ip location
googlemap.generate()
elif num == '4' : ############# Subdomains
clear()
domain = input(f" {RED} [**] {WHITE} Enter a Domain : {RESET}")
subdomain.Discover_Subdomains(domain,WHITE,BLUE,RESET,RED,GREEN)
print(f" {BLUE} Discover Ended ... {RESET}")
input()
elif num == '5' : ############ WordPrss Plugins
clear()
domain = input(f" {RED} [**] {WHITE} Enter a Domain : {RESET}")
plugins.Discover_Plugins(domain,BLUE,RESET,RED,GREEN)
print(f" {BLUE} Discover Ended ... {RESET}")
input()
elif num == '6' : ########### Admin Finder
clear()
domain = input(f" {RED} [**] {WHITE} Enter a Domain : {RESET}")
admin_finder.admin_finder(domain,GREEN,RED,RESET)
print(f" {BLUE} Discover Ended ... {RESET}")
input()
elif num == '7' : ############ Web Site Info
clear()
domain = input(f" {RED} [**] {WHITE} Enter a Domain : {RESET}")
site_info.Fetch_info(domain,GREEN)
input()
elif num == '8' : ############ Port scanner
clear()
ip = input(f" {RED} [**] {WHITE} Enter a ip : {RESET}")
rrange = input(f" {RED} [**] {WHITE} Enter a Range of port : {RESET}")
port_scanner = port_scanner.Portscanner(ip,rrange,GREEN,RED,RESET)
port_scanner.Scan()
print(f" {BLUE} Discover Ended ... {RESET}")
input()
elif num == '9' : ############ Http Header
clear()
domain = input(f" {RED} [**] {WHITE} Enter a Domain : {RESET}")
res = http_header.http_header(domain)
print(f"{RED} Results : \n")
print(f"{WHITE} {res}")
input()
except Exception as e:
print(f" {RED} Error : {e}")
input()
continue