加密的Javascript .js文件 [英] Encrypted Javascript .js File
问题描述
我正在检查一个网站的.js文件并得到一个奇怪的js文件,即 editor-loader-1383346616.js [ ^ ]
我说的代码看起来像是
\ x3c \ x64 \ x69 \ x76 \ x20 \ x69 \ x64 \ x3d \ x27 \ x73 \ x74 \ x61 \\ \\ xx72 \ x74 \ x75 \ x70 \ x73 \ x70 \ x6c \ x61 \ x73
之前我还没有见过这样的代码。 我想知道此代码是否已加密?如果是,那么如何解密呢?如果不是那么究竟是什么?
我不确定这个标题是否合适因为我不喜欢不知道这个文件是否加密。现在考虑一下,一旦知道了适当的情况,我就会改变它。
我得到了Google之后的一点点知识。代码是用十六进制代码编写的,我已经使用位于 Hex的在线代码转换器成功解码了文件的可疑编码部分字符串转换器 [ ^ ]
以下代码:
\ x3c \ x64 \\ \\x69\x76\x20\x69\x64\x3d\x27\x73\x74\x61\x72\x74\x75\x70\x73\x70\x6c \x61\x73\x68\x73\x63\x72\x65\x65\x6e\x27\x3e\x3c\x2f\x64\x69\x76\ x3e
解码为:
?<?di?v ? ?我?d?=? '·S·吨?一个·R·吨?ú2 P·S·P +升?一个?的2 H 2 S 2 Cl·R·E'E'N''? >?
删除那些问号问号我得到最终输出如下
< div id = startupsplashscreen >< / DIV>
Hello coders
I was inspecting .js files of a website and got a strange looking js file i.e. editor-loader-1383346616.js[^]
I am talking about code which looks like
\x3c\x64\x69\x76\x20\x69\x64\x3d\x27\x73\x74\x61\x72\x74\x75\x70\x73\x70\x6c\x61\x73
I haven't seen such code before. I want to know if this code is encrypted? if yes then how to decrypt it? if not then what exactly it is?
I am not sure whether this title is OK or not as I don't know this file is encrypted or not. just consider it for now i will change it once know proper scenario.
I got the solution after Google a little bit and little past knowledge. the code is written in hexadecimal code and i have successfully decoded that suspeciously coded part of file using online code converter located at Hex to string converter[^]
and so following code:
\x3c\x64\x69\x76\x20\x69\x64\x3d\x27\x73\x74\x61\x72\x74\x75\x70\x73\x70\x6c\x61\x73\x68\x73\x63\x72\x65\x65\x6e\x27\x3e\x3c\x2f\x64\x69\x76\x3e
decoded as:
?<?d i?v? ?i?d?=?'?s?t?a?r?t?u?p?s?p?l?a?s?h?s?c?r?e?e?n?'??>?
removing those question marks question marks i get final output as follow
<div id="startupsplashscreen"></div>
这篇关于加密的Javascript .js文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!