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)
  }
}

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

posted @ 2021-09-15 21:38  公众号python学习开发  阅读(381)  评论(0编辑  收藏  举报