<?php
// Connecting, selecting database
$link = mysql_connect("localhost", "root", "") or die("Could not connect");
print "Connected successfully<br>";
mysql_select_db("md") or die("Could not select database");
function getmicrotime()
{
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();
set_time_limit ( 0 );
echo '<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>md5</title>
<style>
<!--
html { font-family: Verdana; font-size: 9pt }
-->
</style>
</head>
<body>';
// create the password
for ($i = 97 ; $i < 123 ; $i++ )
{
for( $j = 97 ; $j < 123 ; $j++ )
{
for ( $k = 97 ; $k < 123 ; $k++ )
{
for( $l = 97 ; $l < 123 ; $l++ )
{
$name = chr($i).chr($j).chr($k).chr($l);
echo $name.' '.$md.'<br>';
$md = md5( $name );
mysql_query("INSERT INTO `md` (`pass`, `passmd`) VALUES ('$name', '$md');",$link);
}
}
}
}
$time_end = getmicrotime();
$time = $time_end - $time_start;
echo '<center>Runtime: '.$time.' seconds</center></font>';
echo '</body></html>';
?> |