解密/解码Javascript

时间:2019-05-03 15:52:05

标签: javascript

所以我今天才开始学习JavaScript。而且我找到了该脚本,但我不确定它是什么以及他们如何对脚本进行操作。因此,我希望有人可以提供帮助,并解释如何以及如何对其进行解码?

var _0x453a = ['currentGame', 'options', 'servers', 'serverId', 'port', 'ape\x20gay', 'apex\x20sucks', 'ape\x20shit', 'apex\x20son\x20of\x20bitch', 'die\x20ape', 'binaryType', 'arraybuffer', 'onopen', 'send', 'codec', 'encode', 'WAR', 'SendChatMessage', 'Global', 'floor', 'random', 'length', 'network', 'SetPartyName'];

(function(_0x4d996a, _0x1a9a52) {
  var _0x527e6f = function(_0x2f08c3) {
    while (--_0x2f08c3) {
      _0x4d996a['push'](_0x4d996a['shift']());
    }
  };
  _0x527e6f(++_0x1a9a52);
}(_0x453a, 0xc0));
var _0x40d3 = function(_0x444099, _0x18f6b8) {
  _0x444099 = _0x444099 - 0x0;
  var _0x2d9847 = _0x453a[_0x444099];
  return _0x2d9847;
};
const _ = () => {
  for (let _0xaa6f61 = 0x0; _0xaa6f61 < 0xf; _0xaa6f61++) {
    const _0x2b5d6e = Game[_0x40d3('0x0')][_0x40d3('0x1')][_0x40d3('0x2')][Game[_0x40d3('0x0')]['options'][_0x40d3('0x3')]],
      _0x158cc8 = new WebSocket('ws://' + _0x2b5d6e['hostname'] + ':' + _0x2b5d6e[_0x40d3('0x4')]),
      _0x5088ac = [_0x40d3('0x5'), _0x40d3('0x6'), 'kys\x20apex', _0x40d3('0x7'), _0x40d3('0x8'), _0x40d3('0x9')];
    _0x158cc8[_0x40d3('0xa')] = _0x40d3('0xb');
    _0x158cc8[_0x40d3('0xc')] = () => {
      _0x158cc8[_0x40d3('0xd')](Game[_0x40d3('0x0')]['network'][_0x40d3('0xe')][_0x40d3('0xf')](0x4, {
        'displayName': _0x40d3('0x10')
      }));
      _0x158cc8['send'](Game[_0x40d3('0x0')]['network'][_0x40d3('0xe')][_0x40d3('0xf')](0x9, {
        'name': _0x40d3('0x11'),
        'channel': _0x40d3('0x12'),
        'message': _0x5088ac[Math[_0x40d3('0x13')](Math[_0x40d3('0x14')]() * _0x5088ac[_0x40d3('0x15')])]
      }));
      _0x158cc8[_0x40d3('0xd')](Game[_0x40d3('0x0')][_0x40d3('0x16')][_0x40d3('0xe')][_0x40d3('0xf')](0x9, {
        'name': 'SetOpenParty',
        'isOpen': 0x1
      }));
      _0x158cc8[_0x40d3('0xd')](Game['currentGame'][_0x40d3('0x16')][_0x40d3('0xe')]['encode'](0x9, {
        'name': _0x40d3('0x17'),
        'partyName': _0x5088ac[Math[_0x40d3('0x13')](Math[_0x40d3('0x14')]() * _0x5088ac[_0x40d3('0x15')])]
      }));
      setTimeout(() => {
        _();
        setTimeout(() => _0x158cc8['close'](), 0xfa);
      }, 0xfa);
    };
  }
};
_();

0 个答案:

没有答案