-
Notifications
You must be signed in to change notification settings - Fork 2
/
WebRub.rb
163 lines (142 loc) · 5.79 KB
/
WebRub.rb
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
################################################################
#Author: Zeyad Azima #
#Github: https://github.com/Zeyad-Azima #
#Facebook: https://www.facebook.com/elkingzeyad.azeem #
#Version: 0.3 #
# There is more updates soon.. #
################################################################
#
require 'colorize'
load 'core/live_resolve/live.rb'
load 'core/live_resolve/resolver.rb'
load 'core/live_resolve/Domin_ip.rb'
load 'core/sub_enum/subdomain.rb'
load 'core/sub_enum/subenum.rb'
load 'core/dirbrute/brute.rb'
load 'core/ext/wtweb.rb'
load 'core/ext/shodan.rb'
$choice
class Start
def webrub
puts """
██╗ ██╗███████╗██████╗ ██████╗ ██╗ ██╗██████╗
██║ ██║██╔════╝██╔══██╗██╔══██╗██║ ██║██╔══██╗
██║ █╗ ██║█████╗ ██████╔╝██████╔╝██║ ██║██████╔╝
██║███╗██║██╔══╝ ██╔══██╗██╔══██╗██║ ██║██╔══██╗
╚███╔███╔╝███████╗██████╔╝██║ ██║╚██████╔╝██████╔╝
╚══╝╚══╝ ╚══════╝╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝
ZeyadAzima
https://github.com/Zeyad-Azima
=====================================================================
| WebRub |
=====================================================================
| 1-Subdomain Enumeration (Very Fast) 7-Extract Web Headers (Fast) |
| 2-Subdomain BruteForce (Fast) 8-Shodan Searcher (Fast) |
| 3-live domain checker (Fast) |
| 4-Resolve domains to ips (Fast) |
| 5-Resolve ips to domains (Fast) |
| 6-Directory BruteForce (Fast) |
=====================================================================
| V0.3 |
=====================================================================
""".red
puts "Enter Your Choice(ex: 1,2,3,4,5,6):".red
$choice=gets.chomp.to_i
end
def main
if $choice==1
puts "Subdomain Enumeration:>".green
puts "Enter your Target (ex: 'google.com'): ".green
target=gets.chomp.to_s
subenum=Subenum.new
subenum.attack(target)
puts ""
puts "[+] Results saved to #{target}.txt"
puts "[+] Press Enter to Continue: ".blue
cont=gets.chomp
system('clear') || system('cls')
elsif $choice==2
puts "Subdomain BruteForce:>".green
puts "Enter your Target (ex: 'google.com'): ".green
domain=gets.chomp.to_s
sub=Subs.new
sub.brute(domain)
puts ""
puts "[+] Press Enter to Continue: ".blue
cont=gets.chomp
system('clear') || system('cls')
elsif $choice==3
puts "live domain checker:>".green
puts "Enter subdomains list directory(ex: /home/root/subdomains.txt):".green
list=gets.chomp
live=Domain.new
live.checker(list)
puts ""
puts "[+] Press Enter to Continue: ".blue
cont=gets.chomp
system('clear') || system('cls')
elsif $choice==4
puts "Resolve domains to ips:>".green
puts "Enter subdomains list directory(ex: /home/root/subdomains.txt):".green
s_list=gets.chomp
resolve=Resolver.new
resolve.hosts(s_list)
puts ""
puts "[+] Press Enter to Continue: ".blue
cont=gets.chomp
system('clear') || system('cls')
elsif $choice==5
puts "Resolve ips to domains:>".green
puts "Enter IPS list directory(ex: /home/root/IPS.txt):".green
i_list=gets.chomp.to_s
ip=Domain.new
ip.ips(i_list)
puts ""
puts "[+] Press Enter to Continue: ".blue
cont=gets.chomp
system('clear') || system('cls')
elsif $choice==6
puts "Directory BruteForce:>".green
puts "Enter your Target Domain or Domain with Directory(ex: 'google.com' or a directory 'google.com/profiles'): ".green
host=gets.chomp.to_s
puts"Enter Target Protocol(ex: 'http' or 'https'): ".green
protocol=gets.chomp.to_s
puts "Enter Wordlist file(ex: php.txt): ".green
file=gets.chomp.to_s
brute=Direr.new
brute.attack(host,protocol,file)
puts ""
puts "[+] Press Enter to Continue: ".blue
cont=gets.chomp
system('clear') || system('cls')
elsif $choice==7
puts ""
puts "Extract Web Headers:>".green
puts "Enter subdomains list(ex: subdomains.txt): ".green
sublist=gets.chomp.to_s
puts ""
header=Web.new
puts header.grab(sublist)
puts ""
puts "[+] Press Enter to Continue: ".blue
cont=gets.chomp
system('clear') || system('cls')
elsif $choice==8
puts ""
puts "Shodan Searcher:>".green
puts "Enter Your target doamin(ex: google.com):".green
target=gets.chomp.to_s
shod=Shodan.new
puts shod.attack(target)
puts ""
puts "[+] Press Enter to Continue: ".blue
cont=gets.chomp
system('clear') || system('cls')
end
end
end
while TRUE
run=Start.new
run.webrub
run.main
end