WinWebMail 3.6.3.1 注册机(Keygen) PHP版
WinWebMail 3.6.3.1 企业版注册机
演示地址http://www.upsdn.net/keygen_wwm.php
2005.1.3修改版,结构更清晰
2005.1.4增加MAC地址验证
<?php
error_reporting(E_ALL);
$HexTable = array( 0xFF924F3F,0x3E543657,0xFFFFDB61,
0x80000062,0x40000020,0x10000002,
0x7FFFFFFF,0x3FFFFFFF,0x0FFFFFFF,
0x80000000,0xC0000000,0xF0000000);
main();
function ConvertChar($CByte)
{
global $HexTable;
$Flag1 = $HexTable[1] & 1;
$Flag2 = $HexTable[2] & 1;
$localChar = 0;
for($i=8; $i>0; $i--)
{
if( $HexTable[0]%2 != 0 )
{
$HexTable[0] = (($HexTable[0]^$HexTable[3])>>1) | $HexTable[9];
if( $HexTable[1]%2 != 0)
{
$HexTable[1] = (($HexTable[1]^$HexTable[4])>>1) | $HexTable[10];
$Flag1 = 1;
}
else
{
$HexTable[1] = ($HexTable[1]>>1) & $HexTable[7];
$Flag1 = 0;
}
}
else
{
$HexTable[0] = ($HexTable[0]>>1) & $HexTable[6];
if( $HexTable[2] %2 !=0)
{
$HexTable[2] = (($HexTable[2]^$HexTable[5])>>1 )| $HexTable[11];
$Flag2 =1;
}
else
{
$HexTable[2] = ($HexTable[2]>>1) & $HexTable[8];
$Flag2 =0;
}
}
$localChar = ($localChar <<1) | ($Flag1 ^ $Flag2);
}
$TempInt = $localChar ^ ord($CByte);
return ($TempInt==0)?$localChar : $TempInt;
}
function KeyGen($MACAddress)
{
$output = md5($MACAddress);
$len = strlen($output);
$MD5String= array();
for ($i = 0; $i < $len; $i++)
{
$MD5String[$i] = substr($output,$i,1);
}
for( $i = 0; $i < $len; $i++ )
{
$MD5String[$i] = ConvertChar($MD5String[$i]);
}
$TempString = chr($MD5String[0]);
for( $i = 1; $i < $len; $i++ )
{
$TempString .= chr($MD5String[$i]);
}
$output = md5($TempString);
echo "RegCode:<font color=brown>".$output."</font><br><br>";
echo "© 2004 <a href='http://www.upsdn.net'>upsdn.net</a>";
echo " <a href='tos.html'>NOTE</a>";
}
function main()
{
$mac_invalid = '';
//if (array_key_exists("mac", $_POST) )
if ( isset($_POST['mac']) )
{
if ( strlen($_POST['mac'])==19 && ereg("[0-9](-[0-9A-F]{2}){6}",$_POST['mac']) )
{
$MacAddress = $_POST['mac'];
KeyGen($MacAddress);
exit(0);
}
else
$mac_invalid = "<br><br><font color=red>Your MAC is invalid</font>,please input it again.<br><br>";
}
echo "<html><head><title> upsdn.net::WinWebMail 3.6.3.1 keygen</title></head>";
echo "<body>WinWebMail 3.6.3.1 keygen";
echo $mac_invalid;
echo "<form action='' method='post'>";
echo "<br>NIC MAC:<input name='mac' type='text' size=40>";
echo "<input name='submit' type='submit' value='OK'></form>";
echo "<br>© 2004 <a href='http://www.upsdn.net'>upsdn.net</a>";
echo " <a href='tos.html'>TOS</a></body></html>";
}
?>
作者:CodeBreaker 更新日期:2004-11-18
来源:本站特稿
浏览次数:
相关文章
相关评论 发表评论
NISC [2005-07-29]
这个程序只能注册250用户和无限用户两种,其它用户数的特征码多一位,输入后无效。
webmaster [2005-07-29]
谢谢提醒,是正则表达式的问题,只匹配了250和无限版本。注册算法无误。
bill [2005-09-04]
跟演示的程序算出来的不一样.
webmaster [2005-09-17]
跟CodeBreaker反映了这个问题
是正则表达式的问题,与注册算法无干
已经修正了
有问题请到论坛讨论
谢谢你的提醒