langsung aja nich. . .
- Code:
<?php
error_reporting(0);
$s = $_POST['username'];
if(strlen($s)>3){
$f = strtoupper(preg_replace("/[^a-zA-Z0-9]+/", "", $s));
$l = strlen($f);
$x = str_split($f, 3);
$y = count($x) - 1;
$a = 0; $b = 0; $c = 0;
$m = array(38,56,57,57,99,15,58,12,13,17,19,18,88,58,52,52,12,13,12,57,52,98);
for($i=0;$i<=$y;$i++){
if(strlen($x[$i]) == 3){
$a = substr((ord(substr($x[$i], 0, 1))*$l+$a),-2);
$b = substr((ord(substr($x[$i], 1, 1))*$l+$b),-2);
$c = substr((ord(substr($x[$i], -1))*$l+$c),-2);
}elseif(strlen($x[$i]) == 2){
$a = substr((ord(substr($x[$i], 0, 1))*$l+$a),-2);
$b = substr((ord(substr($x[$i], -1))*$l+$b),-2);
}elseif(strlen($x[$i]) == 1){
$a = substr((ord($x[$i])*$l+$a),-2);
}
}
$o = array($a,$b,$c,99,99);
$z = 0;
for($i=0;$i<=4;$i++){
$z = floor(($o[$i]*$l+$z)%22);
}
echo "Nama : ".$s."<br />";
echo "Key : 99".$m[$z]."99".$a.$b.$c."<br /><br />";
}elseif($s<>null){
echo "Username terlalu pendek :( <br /><br /><br />";
}
?>
<title>Smadav Keygen</title>
<form method=POST>
Nama = <input type=text name=username /><input type=submit value="Genarate !" />
</form>
Created by ^_^