|
发表于 2013-8-16 10:28:55
|
显示全部楼层
广东省揭阳市
呵呵,通过这个页面http://www.showji.com/search.htm?m=15060708090分析关键js处理文件为:
http://api.showji.com/Locating/Query.js
Query.js源码为:- eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[13-9a-fh-ln-qt-vx-zC-Q]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7 $(q){9 c.t(q)}7 d(){$(\'m\').select();$(\'m\').focus()}7 u(B,A){a w=v;1(w.x)w.x("on"+B,A);y 1(w.z)w.z(B,A,i)}7 C(){1($("m").j.replace(/(^\\s*)|(\\s*$)/g,"").D==0){$("E").6="请输入手机号码。";$("e").3.4=$("k").3.4="l";$("n").3.4="f";d();9 i}a o=c.getElementsByTagName(\'head\')[0];a p=c.t("F");1(p)o.removeChild(p);a b=c.createElement(\'script\');b.type="text/javascript";b.id="F";b.src="http://api.G.com/Locating/www.G.co.m.aspx?m="+escape($("m").j)+"&output=json&callback=H";o.appendChild(b);9 i}7 H(5){1(5["QueryResult"]!="True"){$("E").6="您输入的手机号码格式有误,请重新输入。";$("e").3.4=$("k").3.4="l";$("n").3.4="f"}y{1($("I")!=8)$("I").6=5["Mobile"];1($("J")!=8)$("J").6=5["Province"];1($("K")!=8)$("K").6=5["City"];1($("L")!=8)$("L").6=5["AreaCode"];1($("M")!=8)$("M").6=5["PostCode"];1($("N")!=8)$("N").6=5["Corp"]+5["Card"];1($("e").3.4!="f"){$("n").3.4=$("k").3.4="l";$("e").3.4="f"}}d()}7 O(P){a Q=new RegExp("(^|&|\\\\?)"+P+"=([^&]*)(&|$)"),r;1(r=v.location.search.match(Q))9 unescape(r[2]);9""}1(typeof(h)==\'undefined\')h=O("m");1(h.D>0){$("m").j=h;C()}u("load",d);',[],53,'|if||style|display|obj|innerHTML|function|null|return|var|oScript|document|selmobtext|panelResult|block||strMobile|false|value|panelNotice|none||panelError|oHead|oTar|objID|||getElementById|addEV|window||attachEvent|else|addEventListener|||query|length|txtError|remotejs|showji|querycallback|txtMobile|txtProvince|txtCity|txtAreaCode|txtPostCode|txtCard|QueryString|name|reg'.split('|'),0,{}))
复制代码 解密后为:- function $(objID) {
- return document.getElementById(objID)
- }
- function selmobtext() {
- $('m').select();
- $('m').focus()
- }
- function addEV(B, A) {
- var w = window;
- if (w.attachEvent) w.attachEvent("on" + B, A);
- else if (w.addEventListener) w.addEventListener(B, A, false)
- }
- function query() {
- if ($("m").value.replace(/(^\s*)|(\s*$)/g, "").length == 0) {
- $("txtError").innerHTML = "请输入手机号码。";
- $("panelResult").style.display = $("panelNotice").style.display = "none";
- $("panelError").style.display = "block";
- selmobtext();
- return false
- }
- var oHead = document.getElementsByTagName('head')[0];
- var oTar = document.getElementById("remotejs");
- if (oTar) oHead.removeChild(oTar);
- var oScript = document.createElement('script');
- oScript.type = "text/javascript";
- oScript.id = "remotejs";
- oScript.src = "http://api.showji.com/Locating/www.showji.co.m.aspx?m=" + escape($("m").value) + "&output=json&callback=querycallback";
- oHead.appendChild(oScript);
- return false
- }
- function querycallback(obj) {
- if (obj["QueryResult"] != "True") {
- $("txtError").innerHTML = "您输入的手机号码格式有误,请重新输入。";
- $("panelResult").style.display = $("panelNotice").style.display = "none";
- $("panelError").style.display = "block"
- } else {
- if ($("txtMobile") != null) $("txtMobile").innerHTML = obj["Mobile"];
- if ($("txtProvince") != null) $("txtProvince").innerHTML = obj["Province"];
- if ($("txtCity") != null) $("txtCity").innerHTML = obj["City"];
- if ($("txtAreaCode") != null) $("txtAreaCode").innerHTML = obj["AreaCode"];
- if ($("txtPostCode") != null) $("txtPostCode").innerHTML = obj["PostCode"];
- if ($("txtCard") != null) $("txtCard").innerHTML = obj["Corp"] + obj["Card"];
- if ($("panelResult").style.display != "block") {
- $("panelError").style.display = $("panelNotice").style.display = "none";
- $("panelResult").style.display = "block"
- }
- }
- selmobtext()
- }
- function QueryString(name) {
- var reg = new RegExp("(^|&|\\?)" + name + "=([^&]*)(&|$)"),
- r;
- if (r = window.location.search.match(reg)) return unescape(r[2]);
- return ""
- }
- if (typeof(strMobile) == 'undefined') strMobile = QueryString("m");
- if (strMobile.length > 0) {
- $("m").value = strMobile;
- query()
- }
- addEV("load", selmobtext);
复制代码 由此可见查询地址为:
http://api.showji.com/Locating/www.showji.co.m.aspx?m=手机号&output=json&callback=querycallback
下面附上e代码,最佳哦。。。
|
评分
-
查看全部评分
|