js hook array对象的push方法

var _push = Array.prototype.push
Array.prototype.push=function(){
  if(typeof arguments[0]==="string"){
          console.log("hook array");
          _push.apply(this,arguments)
  }
}

可以在破解验证码的时候,定位轨迹使用,一般估计会是一个列表。

原文地址:https://www.cnblogs.com/c-x-a/p/15291006.html