有趣的JavasSript混淆方法——无法解码

发布于 2024-12-19 04:53:42 字数 1459 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

绅士风度i 2024-12-26 04:53:42

在控制台中:
将第一部分粘贴到 eval

_=" \u0009  .....         ";

第二部分,在控制台中将 eval 替换为 unescape 并运行它

unescape("_\u005f=\u0027';f\u006fr(i\u003d0;i<\u005f.l\u0065ng\u0074h;\u0069+\u002b)\u005f_+=S\u0074rin\u0067.\u0066r\u006fm\u0043harC\u006fde(\u005f.c\u0068a\u0072Co\u0064e\u0041t(i)\u005e3);e\u0076\u0061l(\u005f_)");

应该会给出以下结果:

"__='';for(i=0;i<_.length;i++)__+=String.fromCharCode(_.charCodeAt(i)^3);eval(__)"

更改 eval > 在 console.log 中添加新代码并运行它,

__='';for(i=0;i<_.length;i++)__+=String.fromCharCode(_.charCodeAt(i)^3);console.log(__)

获取控制台中的输出并将其放入 js 中美化器它给你代码

这不安全,需要不到 30 秒才能获取代码。

In console:
paste in the first section up to the eval

_=" \u0009  .....         ";

second part replace the eval with unescape in the console and run it

unescape("_\u005f=\u0027';f\u006fr(i\u003d0;i<\u005f.l\u0065ng\u0074h;\u0069+\u002b)\u005f_+=S\u0074rin\u0067.\u0066r\u006fm\u0043harC\u006fde(\u005f.c\u0068a\u0072Co\u0064e\u0041t(i)\u005e3);e\u0076\u0061l(\u005f_)");

should give you this:

"__='';for(i=0;i<_.length;i++)__+=String.fromCharCode(_.charCodeAt(i)^3);eval(__)"

change the eval in the new code to console.log and run it

__='';for(i=0;i<_.length;i++)__+=String.fromCharCode(_.charCodeAt(i)^3);console.log(__)

take the output in the console and put it in js beautifier and it gives you the code

This is not secure and took <30 seconds to get the code.

韶华倾负 2024-12-26 04:53:42

这是统一码。用于

unescape( encodeURIComponent( s ) );

使其处于正常形式。它仍然很混乱,但这会让你开始。

It's unicode. Use

unescape( encodeURIComponent( s ) );

to get it in it's normal form. It's still obfuscated, but that'll get you started.

雄赳赳气昂昂 2024-12-26 04:53:42

看起来好像是用 unicode 编码的。泄露它的东西在底部,它解析那些巨大的混乱内容并对其进行解码,然后看起来像是通过一个eval()来运行它。

如果你想解密它,你可以通过底部的函数运行它并尝试捕获输出。

但不,它实际上没有加密。只要有足够的耐心,你就可以得到实际的代码。否则,浏览器会卡住。他们无法解密加密的 JavaScript,就像没有密钥一样。

It seems as though it's encoded in unicode. The thing that gave it away is at the bottom where it parses through that giant mess of stuff and decodes it and then it looks like it runs it through an eval( ).

If you wanted to decrypt it, you could run it through the function at the bottom and try to capture the output.

But no, it's not actually encrypted. With enough patience, you can get the actual code out. Otherwise, the browser would choke on it. They can't decrypt encrypted javascript any more than you can without a key.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文