在缩小的脚本中找到什么是SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED?

时间:2019-05-26 06:23:56

标签: javascript obfuscation minimization deobfuscation

有没有办法判断行是否

SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED
以下代码中的

可疑/恶意?甚至它打算做什么?

完整档案
! function(e, r) {
  "object" == typeof exports && "object" == typeof module ? module.exports = r(require("react")) : "function" == typeof define && define.amd ? define("ReactShieldsBadge", ["react"], r) : "object" == typeof exports ? exports.ReactShieldsBadge = r(require("react")) : e.ReactShieldsBadge = r(e.react)
}(window, function(e) {
  return function(e) {
    var r = {};

    function t(n) {
      if (r[n]) return r[n].exports;
      var o = r[n] = {
        i: n,
        l: !1,
        exports: {}
      };
      return e[n].call(o.exports, o, o.exports, t), o.l = !0, o.exports
    }
    return t.m = e, t.c = r, t.d = function(e, r, n) {
      t.o(e, r) || Object.defineProperty(e, r, {
        enumerable: !0,
        get: n
      })
    }, t.r = function(e) {
      "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
        value: "Module"
      }), Object.defineProperty(e, "__esModule", {
        value: !0
      })
    }, t.t = function(e, r) {
      if (1 & r && (e = t(e)), 8 & r) return e;
      if (4 & r && "object" == typeof e && e && e.__esModule) return e;
      var n = Object.create(null);
      if (t.r(n), Object.defineProperty(n, "default", {
          enumerable: !0,
          value: e
        }), 2 & r && "string" != typeof e)
        for (var o in e) t.d(n, o, function(r) {
          return e[r]
        }.bind(null, o));
      return n
    }, t.n = function(e) {
      var r = e && e.__esModule ? function() {
        return e.default
      } : function() {
        return e
      };
      return t.d(r, "a", r), r
    }, t.o = function(e, r) {
      return Object.prototype.hasOwnProperty.call(e, r)
    }, t.p = "", t(t.s = 4)
  }([function(e, r, t) {
    e.exports = t(2)()
  }, function(r, t) {
    r.exports = e
  }, function(e, r, t) {
    "use strict";
    var n = t(3);

    function o() {}

    function a() {}
    a.resetWarningCache = o, e.exports = function() {
      function e(e, r, t, o, a, c) {
        if (c !== n) {
          var l = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://f_b.me/use-check-prop-types");
          throw l.name = "Invariant Violation", l
        }
      }

      function r() {
        return e
      }
      e.isRequired = e;
      var t = {
        array: e,
        bool: e,
        func: e,
        number: e,
        object: e,
        string: e,
        symbol: e,
        any: e,
        arrayOf: r,
        element: e,
        elementType: e,
        instanceOf: r,
        node: e,
        objectOf: r,
        oneOf: r,
        oneOfType: r,
        shape: r,
        exact: r,
        checkPropTypes: a,
        resetWarningCache: o
      };
      return t.PropTypes = t, t
    }
  }, function(e, r, t) {
    "use strict";
    e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"
  }, function(e, r, t) {
    "use strict";
    t.r(r);
    var n = t(1),
      o = t.n(n),
      a = {
        backgroundColor: ["black", "blue", "brightgreen", "red", "orange", "green", "yellowgreen", "yellow", "lightgrey"],
        color: ["#fff"],
        colorMap: {
          red: "#d7624b",
          orange: "#f27e3f",
          green: "#96c40f",
          brightgreen: "#4cc61f",
          yellowgreen: "#a1a328",
          yellow: "#d6ae22",
          lightgrey: "#9e9e9e",
          blue: "#0f80c0",
          black: "#5b5b5b"
        }
      },
      c = t(0),
      l = t.n(c),
      i = a.colorMap;

    function u(e) {
      var r = e.title,
        t = e.prefixCls,
        n = e.className,
        c = e.data,
        l = e.backgroundColor,
        u = e.color;
      return Array.isArray(c) ? (Array.isArray(l) && 0 !== l.length || (l = a.backgroundColor), Array.isArray(u) && 0 !== u.length || (u = a.color), l = l.map(function(e) {
        return i[e] || e
      }), u = u.map(function(e) {
        return i[e] || e
      }), o.a.createElement("span", {
        title: r,
        className: "".concat(t, " ").concat(n),
        onClick: e.onClick
      }, c.map(function(e, r) {
        var n = l[r % l.length],
          a = u[r % u.length];
        return o.a.createElement("span", {
          className: "".concat(t, "-badge"),
          key: r,
          style: {
            backgroundColor: n,
            color: a
          }
        }, e)
      }))) : null
    }
    u.propTypes = {
      data: l.a.array.isRequired,
      color: l.a.array,
      backgroundColor: l.a.array,
      prefixCls: l.a.string,
      className: l.a.string,
      onClick: l.a.func
    }, u.defaultProps = {
      data: [],
      color: [],
      backgroundColor: [],
      prefixCls: "rc-shields",
      className: "",
      onClick: function() {}
    };
    r.default = o.a.memo(u)
  }])
});

0 个答案:

没有答案