农场刷金币、经验BUG用魔盒模拟的代码
相信前几天农场刷金币、经验的BUG大家都知道了,而且刷的很HIGH
现在这个漏洞已经封了,我用工具猫魔盒写了一个刷BUG的代码。仅供大家参考,请勿用于商业用途。
很多人都不清楚工具猫魔盒能干吗,这就是其中用途之一。
HTML页面代码:
<html>
<head>
<script type="text/javascript" src="./lib/gnbox.js" title="魔盒核心库"></script>
<script type="text/javascript" src="./lib/cn.js" title="魔盒中文化库"></script>
<script type="text/javascript" src="./lib/md5.js" title="MD5加密函数"></script>
<script type="text/javascript" src="./lib/qqapp.js" title="QQ常用函数库"></script>
</head>
<body>
<div id="qqlogin">当前登录QQ:<span id="cqq"></span></div>
<script type="text/javascript">
installXMLHTTP(); /*让用户安装xmlhttp 5.0*/
var qq=getqq(); /*获取QQ号码*/
$("cqq").innerHTML=qq; /*设置 id="cqq" 的东西的内容 等于 qq*/
</script>
<!--程序界面代码开始-->
<div style="width:100%;padding:10px;">
Hi~ 工具猫
www.toolmao.com<br />
<div id="itxt">t</div>
</div>
<!--程序界面代码结束-->
<script type="text/javascript" src="main.js" title="核心代码"></script>
<script type="text/javascript">
external.silent=true;
Win.Tray.start(true);
</script>
</body>
</html>
核心javascript代码。main.js
function getClientTime(){
return Math.floor(new Date().getTime()/1000);
}
var _time=getClientTime();
var flandid="";
var t=0;
Net.post("http://nc.qzone.qq.com/cgi-bin/cgi_farm_index?mod=user&act=run",{
"0":"http%3A%2F%2Fappimg%2Eqq%2Ecom%2Fhappyfarm%2Fmodule%2FMain%5Fv%5F53%2Eswf%3A230561",
"1":"http%3A%2F%2Fappimg%2Eqq%2Ecom%2Fhappyfarm%2Fmodule%2Floading%5Fv%5F14%2Eswf",
"uinY":"",
"farmKey":getkey2(_time),
"farmTime":_time,
"uIdx":""
},function(rs){
var rl=rs.farmlandStatus.length;
if(rl<18){
flandid=rl;
for(i=rl+1;i<18;i++){
flandid+=","+i;
}
test();
}else{
alert("土地全部开完,不能再刷");
}
},"json","http://appimg.qq.com/happyfarm/module/Main_v_52.swf","","",function(rs){location.href=location.href});
function test(){
Net.post("http://nc.qzone.qq.com/cgi-bin/cgi_farm_plant?mod=farmlandstatus&act=harvest",{
"fName":"",
"place":flandid,
"uinY":qq,
"farmTime":_time,
"tName":"",
"farmKey":getkey2(_time),
"ownerId":"",
"uIdx":""
},function(rs){
t++;
$("itxt").innerHTML="已经发送了"+t+"次请求";
test();
},"json","http://appimg.qq.com/happyfarm/module/Main_v_52.swf","","",function(rs){test()});
}
球高手把他弄成软件。。