-
Notifications
You must be signed in to change notification settings - Fork 8
/
hatwitch.rb
293 lines (239 loc) · 8.06 KB
/
hatwitch.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
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
#!/usr/bin/ruby
require 'optparse'
def logo
puts ("\n")
puts("██╗ ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗████████╗ ██████╗██╗ ██╗")
puts("██║ ██║██╔══██╗██╔════╝██║ ██║██║ ██║██║╚══██╔══╝██╔════╝██║ ██║")
puts("███████║███████║███████╗███████║██║ █╗ ██║██║ ██║ ██║ ███████║")
puts("██╔══██║██╔══██║╚════██║██╔══██║██║███╗██║██║ ██║ ██║ ██╔══██║")
puts("██║ ██║██║ ██║███████║██║ ██║╚███╔███╔╝██║ ██║ ╚██████╗██║ ██║")
puts("╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝")
puts "Author: Mateus a.k.a Dctor. and Everton a.k.a XGU4RD14N \n"
puts "Version: 1.3 \n"
puts"E-mail: 0daycode at protonmail dot com \n"
puts ("\n")
end
options = {:hash => nil, :cracking => nil}
parser = OptionParser.new do|opts|
opts.banner = "Exemple: hashwitch.rb -m 59b466fd93164953e56bdd1358dc0044 or --hashing 59b466fd93164953e56bdd1358dc0044"
opts.on('-m,', '--hashing', 'Hash type.') do |hash|
options[:hash] = hash;
end
opts.on('-c', '--crack', 'Developing') do |cracking|
options[:cracking] = cracking;
end
logo()
opts.on('-h', '--help', 'Help Commands') do
puts opts
exit
end
end
parser.parse!
if options[:hash].length == 8
puts"ADLER-32"
puts"FCS-32B"
puts"ELF-32"
puts"Fletcher-32"
puts"FNV-132"
puts"Joaat"
puts "CRC-32"
puts "CRC-32B"
puts"GHash-32-3"
puts"GHash-32-5"
puts"XOR- 32"
elsif options[:hash].length == 4
puts"CRC-16"
puts"CRC-16-CCITT"
puts"FCS-16"
elsif options[:hash].length == 34
puts "Lineage II C4"
puts "MD5 (Custom)"
puts "MD5(phpBB3)"
puts "MD5(Unix)"
puts "MD5(Wordpress)"
elsif options[:hash].length == 32
puts"MD5 "
puts "MD4 "
puts "MD2 "
puts "SHARK-32 "
puts "ZUNE-32 "
puts "Domain Cached Credentials "
puts "HAVAL-128 "
puts "HAVAL-128 (HMAC)"
puts "MD5(HMAC(Wordpress))"
puts "NTLM "
puts "RAdmin v2.x "
puts "RipeMD-128"
puts "RipeMD-128(HMAC)"
puts "Snefru-128"
puts "Snefru-128 (HMAC)"
puts "Tiger-128"
puts "Tiger-128 (HMAC)"
puts"MD5(ZipMonster) "
puts"Skein-256(128) "
puts"Skein-512(128) "
puts "MD2(HMAC) "
puts"MD5(HMAC(Wordpress)) "
puts "md5($pass.$alt)"
puts "md5($pass.$salt.$pass)"
puts "md5($pass.md5.($pass))"
puts "md5($pass.md5.($pass))"
puts "md5($pass.'-'.md5($pass))"
puts "md5($salt.$pass))"
puts "md5($salt.$pass.$salt)"
puts "md5($salt.$pass.$username)"
puts "md5($salt.md5.($pass))"
puts "md5($salt.md5.($pass).$salt)"
puts "md5($salt.MD5.($pass).$username)"
puts "md5($salt.md5(($pass.$salt))"
puts "md5($salt.md5(($salt.$pass))"
puts "md5($salt.md5(md5($pass).$salt))"
puts "6 x md5($pass) "
puts "7 x md5($pass) "
puts "8 x md5($pass) "
puts "9 x md5($pass) "
puts "10 x md5($pass) "
puts "11 x md5($pass) "
puts "12 x md5($pass) "
puts "Double MD5 "
puts "vBulletin < v3.8.5 "
elsif options[:hash].length == 13
puts "DES Crypt/ DES (UNIX)"
elsif options[:hash].length == 40
puts "SHA-1"
puts "SHA-1 (HMAC)"
puts "Haval-160"
puts "Haval-160 (HMAC)"
puts "RipeMD-160 "
puts "RipeMD-160 (HMAC)"
puts "Tiger-160"
puts "HAS-160"
puts "SHA-1 (MaNGOS) "
puts "SHA-1 (MaNGOS2) "
puts "SAPG "
puts "Skein-256(160)"
puts "Skein-512(160)"
puts "sha1(LinkedIn)"
puts "sha1($salt.$pass.$salt)"
puts "sha1(md5($pass.$salt))"
puts "sha1(md5($pass).$userdate.$salt "
puts "sha1($pass.$username.$salt) "
puts "sha1(md5($pass).$pass) "
puts "sha1(md5(sha1($pass))) "
puts "xsha1(strtolower($pass))"
puts "sha1($pass.$salt) "
puts "sha1($salt.$pass) "
puts "sha1($salt.$username.$$pass.$salt)"
puts "sha1($salt.md5($pass))"
puts "sha1($salt.md5($pass).$salt)"
puts "sha1($salt.sha1($pass)) "
puts "sha1($salt.sha1($salt.sha1($pass))) "
puts "sha1($username.$pass)"
puts "sha1($username.$pass.$salt) "
puts "sha1(md5($pass)) "
puts "sha1(md5($pass).$salt) "
puts "sha1(md5(sha1(md5($pass)))) "
puts "sha1(sha1($pass))"
puts "sha1(sha1($pass).$salt)"
puts "sha1(sha1($pass).substr($pass,0,3))"
puts "sha1(sha1($salt.$pass))"
puts "sha1(sha1(sha1($pass)))"
puts "sha1(strtolower($username).$pass)"
elsif option[:hash].length == 64
puts"SHA-256"
puts"GOST R 34.11-94"
puts ">HAVAL-256"
puts ">HAVAL-256 (HMAC)"
puts ">Snefru-256 "
puts ">Skein-512(256)"
puts ">Ventrilo (HMAC)"
puts ">WPA-PSK PMK "
puts ">sha256(md5($pass)) "
puts ">sha256(sha1($pass))"
puts ">HMAC-SHA256 (key = $salt)"
puts ">Sha-3(Keccak) "
elsif options[:hash].length == 80
puts "Ripemd-320"
puts "Ripemd-320(HMAC)"
elsif options[:hash].length == 48
puts "[+] Oracle 11g";
puts "[+] SHA-1(Oracle)"
puts "[+] HAVAL-192"
puts "[+] HAVAL-192 (HMAC)"
puts "[+] Tiger-192 "
puts "[+] Tiger-192 (HMAC)"
puts "[+] OSX v10.4, v10.5, v10.6"
elsif options[:hash].length == 56
puts "[+] HAVAL-224"
puts "[+] HAVAL-224 (HMAC)"
puts "[+] SHA-224 "
puts "[+] SHA-224 (HMAC)"
puts "[+] Keccak-224"
puts "[+] Skein-256(224) (HMAC)"
puts "[+] Skein-512(224)"
elsif options[:hash].length == 37
puts "[+] MD5(APR)"
elsif options[:hash].length == 16
puts "[+] MySQL3.X"
puts "[+] Oracle 7-10g, DES(Oracle)"
puts "[+] LM"
puts "[+] CRC-64"
puts "[+] VNC"
puts "[+] FNV-164"
puts "[+] substr(md5($pass),0,16)"
puts "[+] substr(md5($pass,16,16)"
puts "[+] substr(md59$pass),8,16)"
elsif options[:hash].length == 20
puts "[+] substr(md59$pass)"
elsif options[:hash].length == 41
puts "[+] MySQL5"
puts "[+] MySQL4.1"
elsif options[:hash].length == 80
puts "[+] RipeMD-320"
puts "[+] RipeMD-32 (HMAC)"
elsif options[:hash].length == 43
puts "[+] Cisco-IOS SHA256"
elsif options [:hash].length == 65
puts "[+] Joomla"
elsif options[:hash].length == 24
puts "[+] CRC-96(ZIP)"
elsif options[:hash].length == 35
puts "[+] osCommerce, xt:Commerce"
elsif options[:hash].length == 51
puts "[+] MD5(Palshop)"
puts "[+] Palshop"
elsif options[:hash].length == 46
puts "[+] SHA-1 (Django)"
elsif options[:hash].length == 72
puts "[+] SHA-256 (Django)"
elsif options[:hash].length == 96
puts "[+] SHA-384 "
puts "[+] Keccak-384 "
puts "[+] SHA-384 (HMAC) "
puts "[+] sha384($salt.$pass) "
puts "[+] sha384($pass.$salt) "
puts "[+] Skein-512 (384) "
puts "[+] Skein-1024 (384) "
elsif options[:hash].length == 104
puts "[+] SHA-384 (Django) "
elsif options[:hash].length == 128
puts "[+] SHA-512 "
puts "[+] SHA-512 (HMAC) "
puts "[+] Whirlpool"
puts "[+] sha512($pass.$salt)"
puts "[+] sha512($salt.$pass)"
puts "[+] sha512($salt.unicode($pass))"
puts "[+] Whirlpool(HMAC)"
puts "[+] Keccak-512"
puts "[+] Skein-1024(512)"
puts "[+] Skein-512"
puts "[+] HMAC-SHA512 (key = $pass)"
elsif options[:hash].length == 130
puts "[+] IPMI2 RAKP HMAC-SHA1"
elsif options[:hash].length == 136
puts "[+] OSX v10.7"
elsif options[:hash].length == 177
puts "[+] Whirpool(Double)"
elsif options[:hash].length == 256
puts "[+] Skein-1024"
end