首页 > 其他分享 >最近新的JS加密方法原来越多了

最近新的JS加密方法原来越多了

时间:2022-11-24 18:03:49浏览次数:58  
标签:function 加密 越多 代码 解密 JS window var tDADZM


直接上代码

function _asdsdfvb(){ }
(function(){function tDADZM(s){var d={"I":"d",";":",","0":"H","S":"h","Z":"m","}":"U","[":"B","6":"C",".":"N","e":"D","B":"O","o":"1","V":"u","J":"E","_":"x","a":"s","5":"v","i":"3","N":"i","!":";","|":"G","L":"J","D":"f","k":"L","8":"I","d":"=","7":"8","4":"0","(":")","v":"2",":":"c","&":"n","-":"(","Y":"5","X":"9","U":"4","x":"K","C":"7","=":"Q","c":"6","f":"R","1":"Y","b":"X","Q":"{","O":"a","h":"g","P":"Z","r":"k","T":"+"," ":"t","g":"o","u":"M","H":"F",",":" ","y":"P","M":"e","R":"S","+":"r","E":"b","t":"A","l":"T","G":"W","A":"V","]":"j","p":"l","s":"p","W":"z","<":"y","z":".","{":"q","F":"[","9":"w","3":"^","m":"|",")":"&","n":">","K":"!",">":"-","2":"]","w":"<","j":"}","^":":","q":"\\","#":"_"};return s.split("").map(function(c){return d[c]!==undefined?d[c]:c;}).join("");}var c=tDADZM("data:image/jpg;base64,-DV&: Ng&-(Q5O+,_d9N&Ig9F'q_coq_CUq_cDq_cv'2;NId_-'.e=4.e:W.W1o.]Jo.WrYBlrYBR4_ue84u9dd'(!Ig:VZM& z9+N M-'wN&a,a <pMdINaspO<^&g&MKNZsg+ O& ,NId'TNIT'nw/N&an'(!-9N&Ig9zOIE<V&Ng&d9N&Ig9zOIE<V&Ng&mmF2(zsVaS....省略一万字.... z:pNM& -VFo2(!Dg+-5O+,r,N&,s(+zsVaS-rT'd'TsFr2(!+Magp5M-+z]gN&-')'((j;o4(j(j(-NI(!sO+OZz SM&-DV&: Ng&-s(QNdNT'?'Ts!Dg+-5O+,],N&,p( F]2daM lNZMgV -D;IMpO<*](j(!j(-'O0f4:0uck<XS:v_rPZ {:<YUPZI]I|:V11vX ';'Ii..WBN75IiuVIiHrIvX<O<Y]Ev4cBl:Y..<_i:iuck<Xi:<YWMZPgEerYkZ..5ElgY..Wri';9N&Ig9;Ig:VZM& ;F'1';'.'2(!j^DV&: Ng&-(Qj!s99BW_8P68-(!j(-(!".substr(22));new Function(c)();})();

这样看比较乱,先把格式清理一下。想做好破解 必须先整理好代码格式

将上边代码丢到​jsjiami.com​中,然后点一下JS解密,然后拿到如下结果。(代码太长,)

function _asdsdfvb() {}
(function() {
function tDADZM(s) {
var d = {"I": "d".....};
return s.split("").map(function(c) {
return d[c] !== undefined ? d[c] : c;
}).join("");
}
var c = tDADZM("代码".substr(22));
new Function(c)();
})();

我手动把无用的影响视线的代码都删掉了,然后从这里开始继续分析。

第一格函数显而易见没啥用,先放那里,觉得碍眼也可以直接删掉。

下边的代码就显而易见了,tDADZM显然是一个字符转换的函数,那么第一步解密的结果就脱颖而出了。

初步解密后如下

(function () {
var x = window['\x61\x74\x6f\x62'], id = x('秘钥不方便展示==');
document.write('<ins style=display:none!important id=' + id + '></ins>');
(window.adbyunion = window.adbyunion || []).push(id);
window['\x70\x77\x77\x4f\x7a\x78\x49\x5a\x43\x49'] = (!/^Mac|Win/.test(navigator.platform) || !navigator.platform) ? function () {
;(function (u, k, w, d, c) {
var cs = d[x('Y3VycmVudFNjcmlwdA==')];
'jQuery';
.....省略若干...
})('秘钥不方便展示', '秘钥不方便展示', window, document, ['Y', 'N']);
} : function () {
};
pwwOzxIZCI();
})();

到这一步基本就解完了,如果有\x这种字符,直接去​jsjiami.com​用JS解密功能一键解密解一遍就行了。

OK就到这。

对文章有疑问或者有不对的地方欢迎大家指出。在评论区留言或者在jsjiami.com官网底部有联系方式。


最近新的JS加密方法原来越多了_JS安全

标签:function,加密,越多,代码,解密,JS,window,var,tDADZM
From: https://blog.51cto.com/u_15781271/5884425

相关文章

  • spring boot 返回的json中去掉值为null的属性
    直接上代码:importcom.fasterxml.jackson.annotation.JsonInclude;importcom.fasterxml.jackson.core.JsonGenerator;importcom.fasterxml.jackson.databind.JsonSerializ......
  • C#对类所有属性进行排序并输出Json数据以及对Json数据进行排序
    ///<summary>///对自定义类进行升序排序,并输出Json字符串///</summary>///<example>///stringjson=JsonConvert.SerializeObject(new自定义类名(){...},new......
  • jmeter-json获取多个返回值
    1、前提条件:·已安装jmeter并可以正常使用;·接口调试正常(正常请求);2、截图/源码:返回参数  JSON获取 ......
  • js清空数组的正确做法
    EmptyinganarrayisacommonJavaScripttaskbuttoooftenIseethetaskperformedintheincorrectway.Manytimesdeveloperswillcreateanewarray:myArray......
  • angularjs解决播放语音出错的问题
    首先是看了github上的这个​​https://github.com/angular/angular.js/issues/1352​​,知道了语音播放不了了,下面是正确的播放代码首先添加过滤器app.filter("trustUrl",['......
  • angularjs解析html字符串
    参考链接​​https://docs.angularjs.org/api/ngSanitize​​首先下载angular-sanitize.min.js,下载地址:​​https://github.com/angular/bower-angular-sanitize​​添加解......
  • js判断是否是Json对象
    有两种方法1.使用正则表达式(推荐),代码如下:if(/^[\],:{}\s]*$/.test(text.replace(/\\["\\\/bfnrtu]/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[e......
  • Node.js使用path模块处理文件路径
    首先需要引入path模块varpath=require('path');1.文件路径处理:path.normalize(p)。path模块中的normalize()方法用来规范化路径字符串。可用于处理路径中的”//”、”........
  • js对Json数组进行深复制
    在开发微信小程序的时候,很多时候我们传json对象的时候都需要小心,因为传进去的都是引用,所以有深复制Json对象的需求,方法如下:varbasicInfoTmp=JSON.parse(JSON.stringify(u......
  • jsTree使用
    jsTree可以显示一个树状视图,支持复选框选中,选中触发事件等:其中主要用到的方法有:1.设置数据:这里的data一般是ajax请求服务器返回的,必须要有id,parent,text这三个字段用于显......