By Me Immortalcla
<?php
echo "<body bgcolor=\"#99CCCC\">
<table width=\"90%\" border=\"0\" align=\"center\" bgcolor=\"#000000\" cellpadding=\"0\" cellspacing=\"1\">
<tr>
<td>
<table width=\"100%\" border=\"0\" bgcolor=\"#FFFFFF\">
<tr>
<td>
<p align=\"left\"></p>
<form name=\"\" method=\"post\" action=\"\">
<div align=\"center\"><font size=\"2\" face=\"Verdana, Arial\">Lunghezza della password
(un numero compreso tra 6-1Cool:</font>
<input type=\"text\" name=\"length\" size=\"5\" maxlength=\"2\">
<input type=\"submit\" name=\"Submit\" value=\"Genera\">
</div>
</form>
<p align=\"center\"> </p>
</td>
</tr>
</table>
</td>
</tr>
</table>";
if($_POST[length]!=''){
$minlength = 6;
$maxlength = 18;
$template = "
<body bgcolor=\"#99CCCC\">
<h3 align=\"center\"><font color=\"#FF0000\">Generatore di Passoword By Immortalcla Smile</font></h3>
<table width=\"90%\" border=\"0\" align=\"center\" bgcolor=\"#000000\" cellpadding=\"0\" cellspacing=\"1\">
<tr>
<td>
<table width=\"100%\" border=\"0\" bgcolor=\"#0066FF\">
<tr>
<td>
<p align=\"left\"><font size=\"2\" face=\"Verdana, Arial\">La tua password è: <font size=\"4\"><b>%%RESULT%%</b></font></font><br></p>
<p align=\"left\"><font face=\"Verdana, Arial\" size=\"2\">Questa password
è case sensitive</font></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
";
srand((double)microtime() * 1000000);
if(!$output = $template)
die("Errore nella variabile Template");
if(($_POST[length] < $minlength) || ($_POST[length] > $maxlength)){
$_POST[length] = (($minlength + $maxlength) / 2);
$badlength = 1;
}
for($i=0; $i<$_POST[length]; $i++){
$randnum = rand(48, 122);
if(($randnum > 57) && ($randnum < 90))
while($randnum < 65)
$randnum = rand(48, 90);
if(($randnum > 90) && ($randnum < 122))
while($randnum < 97)
$randnum = rand(97, 122);
$password .= chr($randnum);
}
if($badlength)
$password .= " <br>Attenzione: Ho creato una password con " . $_POST[length] . " caratteri in quanto la lunghezza da te scelta non rientrava tra 6 e 18 caratteri";
$output = str_replace("%%RESULT%%", $password, $output);
echo $output;
}
?><center><font face="Arial Black" size="3" color="#FFFFFF">Password Generator Online By Immortalcla Online For</font></span></p></center></p>
<center><a href="http://hackinginside.altervista.org">Hacking Inside Crew</a></center>