gpt4 book ai didi

javascript - 将十六进制化的js文件转换为文本

转载 作者:行者123 更新时间:2023-12-01 03:40:28 30 4
gpt4 key购买 nike

我有一个大文件,我想了解其中发生的情况。但是,文件似乎已被编码。其中的一段内容:

var _0x36ba=["\x69\x73\x41\x72\x72\x61\x79","\x63\x61\x6C\x6C","\x74\x6F\x53\x74\x72\x69\x6E\x67","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x5B\x6F\x62\x6A\x65\x63\x74\x20\x41\x72\x72\x61\x79\x5D","\x74\x72\x69\x6D","","\x72\x65\x70\x6C\x61\x63\x65","\x76\x69\x65\x77\x70\x6F\x72\x74\x53\x69\x7A\x65","\x67\x65\x74\x48\x65\x69\x67\x68\x74","\x48\x65\x69\x67\x68\x74","\x67\x65\x74\x57\x69\x64\x74\x68","\x57\x69\x64\x74\x68","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x64\x6F\x63\x75\x6D\x65\x6E\x74","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x69\x6E\x6E\x65\x72","\x63\x6C\x69\x65\x6E\x74","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x69\x64","\x76\x70\x77\x2D\x74\x65\x73\x74\x2D\x62","\x63\x73\x73\x54\x65\x78\x74","\x73\x74\x79\x6C\x65","\x6F\x76\x65\x72\x66\x6C\x6F\x77\x3A\x73\x63\x72\x6F\x6C\x6C","\x64\x69\x76","\x76\x70\x77\x2D\x74\x65\x73\x74\x2D\x64","\x70\x6F\x73\x69\x74\x69\x6F\x6E\x3A\x61\x62\x73\x6F\x6C\x75\x74\x65\x3B\x74\x6F\x70\x3A\x2D\x31\x30\x30\x30\x70\x78","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C"];

这是十六进制。例如,\x69\x73\x41\x72\x72\x61\x79inArray。如何将所有文件转换为可读文本?

最佳答案

只需尝试使用 forEach 循环的简单 .toString 即可。

var _0x36ba=["\x69\x73\x41\x72\x72\x61\x79","\x63\x61\x6C\x6C","\x74\x6F\x53\x74\x72\x69\x6E\x67","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x5B\x6F\x62\x6A\x65\x63\x74\x20\x41\x72\x72\x61\x79\x5D","\x74\x72\x69\x6D","","\x72\x65\x70\x6C\x61\x63\x65","\x76\x69\x65\x77\x70\x6F\x72\x74\x53\x69\x7A\x65","\x67\x65\x74\x48\x65\x69\x67\x68\x74","\x48\x65\x69\x67\x68\x74","\x67\x65\x74\x57\x69\x64\x74\x68","\x57\x69\x64\x74\x68","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x64\x6F\x63\x75\x6D\x65\x6E\x74","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x69\x6E\x6E\x65\x72","\x63\x6C\x69\x65\x6E\x74","\x62\x6F\x64\x79","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x69\x64","\x76\x70\x77\x2D\x74\x65\x73\x74\x2D\x62","\x63\x73\x73\x54\x65\x78\x74","\x73\x74\x79\x6C\x65","\x6F\x76\x65\x72\x66\x6C\x6F\x77\x3A\x73\x63\x72\x6F\x6C\x6C","\x64\x69\x76","\x76\x70\x77\x2D\x74\x65\x73\x74\x2D\x64","\x70\x6F\x73\x69\x74\x69\x6F\x6E\x3A\x61\x62\x73\x6F\x6C\x75\x74\x65\x3B\x74\x6F\x70\x3A\x2D\x31\x30\x30\x30\x70\x78","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C"];

_0x36ba.forEach(function(item, index) {
_0x36ba[index] = item.toString();
});

console.log(_0x36ba)

关于javascript - 将十六进制化的js文件转换为文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43925693/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com