- 积分
- 14
- 阳光
-
- 花瓣
-
- 雨露
-
- 节操
-
- 基情
-
- 贡献
-
- 注册时间
- 2015-1-11
- 在线时间
- 小时
- 最后登录
- 1970-1-1
- 阅读权限
- 10
该用户从未签到
|
发表于 2015-1-11 22:08:49
|
显示全部楼层
怎么又有人问到这个问题~
首先你要明确一点:12306返回的消息说你用第三方或插件,不一定就真是知道
只是在检测你提交的login信息时检查的字段不符合预期结果
至于怎么去检测的,你要去研究第一次请求动态JS时传回来的gc函数
这个函数扫描一些关键字,4个维度去进行,最后传回检测结果'1111'则代表全部通过,没有扫描到插件
function gc(){var key='NzgyOTA0';var value='';var cssArr=['selectSeatType','ev_light','ev_light','fishTimeRangePicker','updatesFound','tipScript','refreshButton','fish_clock','refreshStudentButton','btnMoreOptions','btnAutoLogin','fish_button','defaultSafeModeTime','ticket-navigation-item'];var csschek=false;if(cssArr&&cssArr.length>0){for(var i=0;i<cssArr.length;i++){if($('.'+cssArr).length>0){csschek=true;break;}}}if(csschek){value+='0';}else{value+='1';}var idArr=['btnMoreOptions','refreshStudentButton','fishTimeRangePicker','helpertooltable','outerbox','updateInfo','fish_clock','refreshStudentButton','btnAutoRefresh','btnAutoSubmit','btnRefreshPassenger','autoLogin','bnAutoRefreshStu','orderCountCell','refreshStudentButton','enableAdvPanel','autoDelayInvoke','refreshButton','refreshTimesBar','chkAllSeat'];var idchek=false;for(var i=0;i<idArr.length;i++){if($('#'+idArr)[0]){idchek=true;break;}}if(idchek){value+='0';}else{value+='1';}var attrArr=['helperVersion'];var attrLen=attrArr?attrArr.length:0;var attrchek=false;for(var p in parent){if(!attrchek){for(var k=0;k<attrLen;k++){if(String(p).indexOf(attrArr[k])>-1){attrchek=true;break;}}}else break;}for(var p in window){if(!attrchek){for(var k=0;k<attrLen;k++){if(String(p).indexOf(attrArr[k])>-1){attrchek=true;break;}}}else break;}var styleArr=['.enter_right>.enter_enw>.enter_rtitle','.objbox td'];var stylechek=false;if(styleArr&&styleArr.length>0){for(var i=0;i<styleArr.length;i++){var tempStyle=$(styleArr);if(tempStyle[0]){for(var k=0;k<tempStyle.length>0;k++){if(tempStyle.eq(k).attr('style')){stylechek=true;break;}}}}}if(stylechek){value+='0';}else{value+='1';}var keywordArr=[{key:".enter_right",values:["亲","抢票","助手"]},{key:".cx_form",values:["点发车","刷票"]},{key:"#gridbox",values:["只选","仅选","checkBox","checkbox"]},{key:".enter_w",values:["助手"]}];var keywordchek=false;if(keywordArr&&keywordArr.length>0){for(var i=0;i<keywordArr.length;i++){var kw=keywordArr;if(fw(kw)){keywordchek=true;break;}}}if(keywordchek){value+='0';}else{value+='1';}if(value.indexOf('0')>-1){aj();}return key+':'+value;}
|
|