-
Notifications
You must be signed in to change notification settings - Fork 0
/
md5-decryptor.php
119 lines (104 loc) · 4.13 KB
/
md5-decryptor.php
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
<?php
/**
* @author Z0NK3X or Ardzz
* @link https://fb.com/aardzz
* @package MD5 Decryptor
*
* Thanks For Jim Geovedi's wordlist
*/
$green = "\e[1;92m";
$cyan = "\e[1;36m";
$normal = "\e[0m";
$blue = "\e[34m";
$green1 = "\e[0;92m";
$yellow = "\e[93m";
$red = "\e[91m";
function val_md5($md5 = '')
{
if (empty($md5)) return false;
return preg_match('/^[a-f0-9]{32}$/', $md5);
}
function banner()
{
date_default_timezone_set("Asia/Jakarta");
$green = "\e[1;92m";
$cyan = "\e[1;36m";
$normal = "\e[0m";
$blue = "\e[1;34m";
$green1 = "\e[0;92m";
$yellow = "\e[93m";
$red = "\e[1;91m";
$banner = $cyan . "
▄███████▄ ▀████ ▐████▀
██▀ ▄██ ███▌ ████▀
▄███▀ ███ ▐███
▀█▀▄███▀▄▄ ▀███▄███▀
▄███▀ ▀ ████▀██▄
▄███▀ ▐███ ▀███
███▄ ▄█ ▄███ ███▄
▀████████▀ ████ ███▄
" . $normal . $red . "Z0NK3X" . $normal . "
[" . date("Y-m-d H:i:s") . "]
" . $yellow . "███╗ ███╗██████╗ ███████╗" . $normal . "
" . $yellow . "████╗ ████║██╔══██╗██╔════╝" . $normal . "
" . $yellow . "██╔████╔██║██║ ██║███████╗" . $normal . $red . " ╔╦╗╔═╗╔═╗╦═╗╦ ╦╔═╗╔╦╗╔═╗╦═╗
" . $yellow . "██║╚██╔╝██║██║ ██║╚════██║" . $normal . $red . " ║║║╣ ║ ╠╦╝╚╦╝╠═╝ ║ ║ ║╠╦╝
" . $yellow . "██║ ╚═╝ ██║██████╔╝███████║" . $normal . $red . " ═╩╝╚═╝╚═╝╩╚═ ╩ ╩ ╩ ╚═╝╩╚═
" . $yellow . "╚═╝ ╚═╝╚═════╝ ╚══════╝
\n" . $normal;
echo $banner;
}
system("clear");
$wordlist = "wordlist.txt";
banner();
if (!file_exists($wordlist)) {
echo $red . " [!] File $wordlist isn't exist!\n" . $normal;
exit();
}
echo " [*] Total Wordlist : " . $cyan . count(file($wordlist)) . $normal . "\n";
$hash = readline(" [?] MD5 HASH : ");
if (!val_md5($hash)) {
echo $red . " [!] String isn't MD5!\n" . $normal;
exit();
}
echo "\n";
echo " ------------------------------------------------------~\n";
echo " [1] MD5 Decrpytor Offline [" . $cyan . "BF METHOD" . $normal . "]\n";
echo " [2] MD5 Decrpytor Online\n";
echo " ------------------------------------------------------~\n\n";
$option = readline(" [?] Choose Your Option : ");
echo "\n";
if ($option == 1) {
echo " ------------------------------------------------------~\n";
foreach(explode("\n", file_get_contents("wordlist.txt")) as $pass) {
// echo " [*] Using Word [$pass]\n";
if (md5($pass) == $hash) {
echo $green1 . " [+] Found! $hash => " . $cyan . "$pass\n" . $normal;
echo " ------------------------------------------------------~\n";
exit();
}
}
echo $red . " [!] NOT FOUND! $hash\n" . $normal;
echo " ------------------------------------------------------~\n";
exit();
}
elseif ($option == 2) {
$json = json_decode(file_get_contents("https://api.zonkploit.com/md5-decrypt/" . $hash) , 1);
if ($json["is_found"] == 1) {
echo " ------------------------------------------------------~\n";
echo $green1 . " [+] Found! $hash => " . $cyan . $json["result"] . $normal . "\n";
echo " ------------------------------------------------------~\n";
}
else {
echo " ------------------------------------------------------~\n";
echo $red . " [-] Not found $hash\n" . $normal;
echo " ------------------------------------------------------~\n";
}
}
else {
echo " ------------------------------------------------------~\n";
echo $red . " [-] Invalid Option\n" . $normal;
echo " ------------------------------------------------------~\n";
exit();
}
?>