`

迅雷安全中心泄露拦截威胁统计核心算法源代码

阅读更多

(转载)迅雷安全中心统计拦威胁下载次数的统计算法泄露,任何用户都可以查看.

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />

<title>迅雷安全中心</title>

<script type="text/javascript">

<!--

var total_stop=1417107542.00;     //阻挡病毒文件下载次数    

var  increase_speed=28.70;            //阻挡数增长速度,由前端时间计算所得,所有数字除了这个和上一个为了js效果做了点模拟均是截至昨日精确的统计结果

increase_speed/=5;

window.setInterval(fresh, 200);

function fresh()

{

	total_stop = total_stop +increase_speed;

	var temp= total_stop-total_stop%1;

	for (i=0;i<10;i++)

	{

		var residual=temp%10;

		temp=(temp-residual)/10;

		document.getElementById("total_"+i).src="../images/right_state_num"+residual+".gif";

	}



}

-->

</script>

</head>
这个统计算法应该放到服务器端来做,这么核心的算法代码怎么能够让用户知道,这个
也太不小心了。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics