这是什么样的加密? JavaScript/jQuery代码

发布于 2025-02-10 04:47:10 字数 528 浏览 1 评论 0原文

好吧,我正在阅读一些我动手的文件,并且这个JavaScript文件具有此文件中使用的jQuery数组。

该代码是什么样的加密?

var _0xe66d=["\x53\x61\x79\x48\x65\x6C\x6C\x6F","\x47\x65\x74\x43\x6F\x75\x6E\x74","\x4D\x65\x73\x73\x61\x67\x65\x20\x3A\x20","\x59\x6F\x75\x20\x61\x72\x65\x20\x77\x65\x6C\x63\x6F\x6D\x65\x2E"];function NewObject(_0xa79fx2){var _0xa79fx3=0;this[_0xe66d[0]]= function(_0xa79fx4){_0xa79fx3++;alert(_0xa79fx2+ _0xa79fx4)};this[_0xe66d[1]]= function(){return _0xa79fx3}}var obj= new NewObject(_0xe66d[2]);obj.SayHello(_0xe66d[3])

well i was reading some files i got my hands on and this javascript file had this array that jQuery inside this file is using.

what kind of encryption is this code?

var _0xe66d=["\x53\x61\x79\x48\x65\x6C\x6C\x6F","\x47\x65\x74\x43\x6F\x75\x6E\x74","\x4D\x65\x73\x73\x61\x67\x65\x20\x3A\x20","\x59\x6F\x75\x20\x61\x72\x65\x20\x77\x65\x6C\x63\x6F\x6D\x65\x2E"];function NewObject(_0xa79fx2){var _0xa79fx3=0;this[_0xe66d[0]]= function(_0xa79fx4){_0xa79fx3++;alert(_0xa79fx2+ _0xa79fx4)};this[_0xe66d[1]]= function(){return _0xa79fx3}}var obj= new NewObject(_0xe66d[2]);obj.SayHello(_0xe66d[3])

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

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

发布评论

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

评论(2

北方。的韩爷 2025-02-17 04:47:10

您显示的输出看起来像是使用 obfuscator.io

去量身定制的代码仅在一定程度上起作用。

您可以肯定地使用

function NewObject(_0xa79fx2) {
  var _0xa79fx3 = 0;
  this.SayHello = function (_0xa79fx4) {
    _0xa79fx3++;
    alert(_0xa79fx2 + _0xa79fx4);
  };
  this.GetCount = function () {
    return _0xa79fx3;
  };
}
var obj = new NewObject("Message : ");
obj.SayHello("You are welcome.");

但是,这样的工具无法恢复原始变量或参数名称,因为在混淆过程中已替换了这些名称。而且没有办法取回这些。

The output you show looks like it was a result of using obfuscator.io.

Deobfuscating such a code works only to a certain degree.

You can for sure use a tool like deobfuscate.io. This results in this:

function NewObject(_0xa79fx2) {
  var _0xa79fx3 = 0;
  this.SayHello = function (_0xa79fx4) {
    _0xa79fx3++;
    alert(_0xa79fx2 + _0xa79fx4);
  };
  this.GetCount = function () {
    return _0xa79fx3;
  };
}
var obj = new NewObject("Message : ");
obj.SayHello("You are welcome.");

But such tools can't recover the original variable or parameter names because those have been replaced in the obfuscation process. And there is no way to get those back.

蓝天白云 2025-02-17 04:47:10

似乎是十六进制编码。您可以使用第三方网站对其进行解码。

 https://beautifier.io

Seems to be it is hex encoded. You can use third party websites to decode it.

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