⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 td08advkey.php

📁 通达2008的注册机
💻 PHP
字号:
<?php

function decrypt_strt( $TXT )
{
	$TMP = "";
	$CTR = "123456789";
	$TP_CTR = strlen( $CTR ) - 1;
	srand( ( double )microtime( ) * 1000000 );
	$j = 0;
	for ( ;	$j < $TXT;	++$j	)
	{
		$TMP .= $CTR[substr( 0, $TP_CTR )];
	}
	return $TMP;
}

include_once( "inc/td_core.php" );

function wkeyfile( $key_array )
{
	global $M_CODE1;
	$s_s = "g";
	$key_str = implode( "|", $key_array );
	$MACHINE_CODE = $M_CODE1;
	$key = "制作、使用注册机或破解版是违法行为,欢迎支持正版-中国兵器工业信息中心通达OA-www.tongda2000.com-".$MACHINE_CODE;
	$ri = md5( $key );
	$ik = array( );
	$klen = strlen( $ri );
	$i = 0;
	for ( ;	$i < $klen;	++$i	)
	{
		$ik[$i] = hexdec( substr( $ri, $i, 1 ) );
	}
	$k = 0;
	$slen = strlen( $key_str );
	$j = 0;
	for ( ;	$j < $slen;	++$j	)
	{
		$td_core_str .= strlen( dechex( ord( $key_str[$j] ) - $ik[$k] ) ) < 2 ? "0".dechex( ord( $key_str[$j] ) - $ik[$k] ) : dechex( ord( $key_str[$j] ) - $ik[$k] );
		if ( $k == "32" )
		{
			$k = 0;
		}
		++$k;
	}
	$td_core_str = substr( chunk_split( $td_core_str, 2, "s" ), 0, -1 );
	return $td_core_str;
}

include_once( "inc/conn.php" );

do
{
	$seedarray = microtime( );
	$seedstr = split( " ", $seedarray, 5 );
	$seed = $seedstr[0] * 100000000;
	srand( $seed );
	$random = rand( 10000000, 99999999 );
} while ( ( $random - 1 ) % 11 != 0 && ( $random - 2 ) % 11 != 0 && ( $random - 3 ) % 11 != 0 );
$i = 0;
do
{
	++$i;
	$seedarray = microtime( );
	$seedstr = split( " ", $seedarray, 5 );
	$seed = $seedstr[0] * 100000000;
	srand( $seed );
	$random = rand( 10000000, 99999999 );
} while ( $i < 3 );
$SN_CODE .= $random;
$i = 0;
$end = "";
do
{
	++$i;
	$seedarray = microtime( );
	$seedstr = split( " ", $seedarray, 5 );
	$seed = $seedstr[0] * 10000;
	srand( $seed );
	$end = rand( 1000, 9999 );
} while ( $i < 4 );
$ROOT_PATH = getenv( "DOCUMENT_ROOT" );
$KEY_PATH = $ROOT_PATH."tdkey.dat";
$UNIT_NAME = $CompanyName;
$KeyFile = $ROOT_PATH."inc/tdkey.dat";
$TD_reg_code = "TD20F-".$SN_CODE."-{$end}";
$MACHINE_CODE = $M_CODE1;
$key = "制作、使用注册机或破解版是违法行为,欢迎支持正版-中国兵器工业信息中心通达OA-www.tongda2000.com-".$MACHINE_CODE;
$TD_CORE_USER_NUM = $USER_MB;
$TD_Com_Opt = "SMS-TDEA-TDFIS-TRAIN-ROLL-EXAM-ZHIDAO-PROJECT";
$td_reg_array = array(
	$UNIT_NAME,
	$TD_reg_code,
	$TD_CORE_USER_NUM,
	$MACHINE_CODE,
	$TD_Com_Opt
);
$_key_s = wkeyfile( $td_reg_array );
$_key_s = gzdeflate( gzcompress( $_key_s ) );
$fp = fopen( $KEY_PATH, "w" );
$a = fputs( $fp, "{$_key_s}" );
$a = fclose( $fp );
echo "\r\n<html>\r\n<head>\r\n<title>";
echo $OA_PRODUCT_NAME;
echo "通达OA2008ADV注册机</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/theme/1/style.css\">\r\n<script Language=\"JavaScript\">function CheckForm()\r\n{\r\nif(document.form1.USER_SN.value==\"\")\r\n{ alert(\"请输入授权用户数!\");\r\nreturn (false);\r\n}\r\nif(document.form1.M_CODE.value==\"\")\r\n{ alert(\"请输入机器码!\");\r\nreturn (false);\r\n}\r\n return (true);\r\n }\r\n function paste_code()\r\n {\r\n textRange = document.form1.CompanyName.createTextRange();\r\n textRange.execCommand(\"paste\");\r\n }\r\n function paste_code1()\r\n {\r\n textRange = document.form1.USER_MB.createTextRange();\r\n textRange.execCommand(\"paste\");\r\n }\r\n function paste_code2()\r\n {\r\n textRange = document.form1.M_CODE1.createTextRange();\r\n textRange.execCommand(\"paste\");\r\n } \r\n </script>\r\n </head>\r\n <body class=\"bodycolor\" topmargin=\"5\" onload=\"document.form1.REGISTER_CODE.focus();\">\r\n <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr> <td class=\"Big\"><span class=\"big3\"> </td></tr></table>\r\n <hr><form  method=\"post\" name=\"form1\" onsubmit=\"return CheckForm();\">\r\n<table class=\"TableBlock\" width=\"600\" align=\"center\">\r\n<tr><td class=\"TableHeader\" colspan=\"2\" align=\"center\" height=30><b>\r\n<FORM METHOD=post><table class=\"TableBlock\" width=\"600\" align=\"center\"><tr><td  class=\"TableHeader\" colspan=\"2\" align=\"center\" height=30><b>\r\n<font color=\"Blue\" size=\"3\">通达&nbsp;Office&nbsp;Anywhere&nbsp;2008ADV&nbsp;注册机</font></b>&nbsp;&nbsp;版本号:20081008</td></tr><tr>\r\n<td nowrap class=\"TableData\" width=\"100\"><b>&nbsp;单位名称:</b></td><td class=\"TableData\"><input type=\"text\" name=\"CompanyName\" size=\"35\" class=\"BigInput\" value=\"";
echo $TD_UNIT_INFO;
echo "\">\r\n<input type=\"button\" value=\"粘贴\" class=\"BigButton\" onclick=\"paste_code()\"> \r\n</td> </tr>\r\n<td nowrap class=\"TableData\" width=\"100\"><b>&nbsp;注册用户数:</b></td><td class=\"TableData\"><input type=\"text\" name=\"USER_MB\" size=\"35\" class=\"BigInput\" value=\"NL\">\r\n<input type=\"button\" value=\"粘贴\" class=\"BigButton\" onclick=\"paste_code1()\"> \r\n</td> </tr>\r\n<tr><td nowrap class=\"TableData\" width=\"100\"><b>&nbsp;机器码:</b></td><td  class=\"TableData\"> <input type=\"text\" name=\"M_CODE1\" size=\"35\" class=\"BigInput\" value=\"";
echo td_core_mcode( );
echo "\">\r\n<input type=\"button\" value=\"粘贴\" class=\"BigButton\" onclick=\"paste_code2()\"> \r\n</td> </tr> <tr>\r\n<td nowrap  class=\"TableData\" width=\"100\"><b>&nbsp;本机机器码:</b></td><td class=\"TableData\">";
echo td_core_mcode( );
echo "</td></tr><tr>\r\n <td class=\"TableControl\" colspan=\"2\" align=\"center\">\r\n<input type=\"submit\" value=\"生成注册文件\" class=\"BigButton\"></td></tr>\r\n";
if ( ( $random - 1 ) % 11 != 0 && ( $random - 2 ) % 11 != 0 && ( $random - 3 ) % 11 != 0 )
{
	echo "<td></td><td  nowrap ><font color=red size=\"3\"><b>序列号< ";
	echo $TD_reg_code;
	echo " >无效,请重新生成。</b></font></td>";
	exit( );
}
if(stristr($TD_SN_INFO,"icixi") || stristr($TD_SN_INFO,"good")|| stristr($TD_SN_INFO,"-38050")|| stristr($TD_SN_INFO,"1980629V")|| stristr($TD_SN_INFO,"89993333")|| stristr($TD_SN_INFO,"92260FF8")|| stristr($TD_SN_INFO,"30920066-7169"))
{
	echo "<td></td><td  nowrap ><font color=red size=\"3\"><b>此序列号< ";
	echo $TD_reg_code;
	echo " >会导致数据库错误,数据丢失,请重新生成。</b></font></td>";
	exit( );
}
$STR = strtok( $TD_SN_INFO, "-" );
$SN_HEAD = $STR;
$STR = strtok( "-" );
$SN_CODE = $STR;
$STR = strtok( "-" );
$SN_TAIL = $STR;
$SN_MID = substr( $TD_SN_INFO, 4, 1 );
if ( strstr( $TD_reg_code, "TD20" ) )
{
}
if ( strlen( $SN_HEAD ) != 5 || strlen( $SN_CODE ) != 8 || strlen( $SN_TAIL ) != 4 || !is_numeric( $SN_CODE ) && !is_numeric( $SN_TAIL ) )
{
	echo "<td></td><td  nowrap ><font color=red size=\"3\"><b>序列号< ";
	echo $TD_reg_code;
	echo " >被限制,请重新生成。</b></font></td>";
	exit( );
}
echo "<td class=\"TableData\" width=\"100\"><b>&nbsp;单位名称:</b></td><td  class=\"TableData\">";
echo $UNIT_NAME;
echo "</td> </tr> <tr>\r\n<td class=\"TableData\" width=\"100\"><b>&nbsp;注册用户数:</b></td><td  class=\"TableData\">\r\n";
if ( $TD_CORE_USER_NUM != "NL" )
{
	echo $TD_CORE_USER_NUM;
}
else
{
	echo "无限用户";
}
echo " </td> </tr> <tr>\r\n<td class=\"TableData\" width=\"100\"><b>&nbsp;生成序列号:</b></td><td class=\"TableData\">";
echo $TD_reg_code;
echo "</td> </tr> <tr>\r\n<td class=\"TableData\" width=\"100\"><b>&nbsp;申请机器码:</b></td><td class=\"TableData\">";
echo $MACHINE_CODE;
echo "</td> </tr> <tr>\r\n<td class=\"TableData\" width=\"100\"><b>&nbsp;注册文件:</b></td><td class=\"TableData\">生成位置";
echo $KEY_PATH;
echo "</td> </tr> <tr>\r\n</form></table><b>往事如昔的网络系统!&nbsp;QQ:351148012&nbsp;</b></body></html>\r\n\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -