-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtracker.php
More file actions
44 lines (36 loc) · 955 Bytes
/
tracker.php
File metadata and controls
44 lines (36 loc) · 955 Bytes
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
<!DOCTYPE html>
<html>
<h1>MD5 cracker</h1>
<p>This application takes an MD5 hash of a four digit pin
and check all 10,000 possible four digit PINs to
determine the PIN.<br>
</p>
<?php
echo "Debug Output: <br>";
$start = microtime(true);
for ($i = 0; $i <= 9999; $i++) {
$x=str_pad($i, 4, '0', STR_PAD_LEFT);
$hash=hash('md5',$x);
if($i<=15){
echo "$hash $x <br>";
}
$input=false;
if ($hash == $_GET["md5"] ){
$time_elapsed_secs = microtime(true) - $start;
echo "Total checks:$i <br>";
echo "Ellapsed time: $time_elapsed_secs <br> ";
$input= true;
echo " PIN is: $x <br>";
break;
}
}
if($input != true){
echo "PIN : Not Found <br>";
}
?>
<form action="tracker.php" method="get" >
<input type="text" name="md5" size="40" >
<input type="submit" value="Crack md5">
</form>
</body>
</html>