//hook xxx.call
Function.__proto__.__call = Function.__proto__.call;
Function.__proto__.call = function (...args) {
//感兴趣的某个调用
if(args.length === 8 && args[0]===args[3] && args[2].exports===args[0] && typeof(args[0]==='string')){
console.info('================== find: ', args[5])
}else{
//console.info('================= not find: ', this)
}
//调原来的 call 函数
return this.__call(... args);
//如果是 chrome 里面运行, 则在 console 中每次敲下键盘, 都会执行 hasOwnProperty 函数或者 eval
if (this === eval || Object.prototype.hasOwnProperty===this)
{
//console.info('eval / hasOwnProperty called');
}
else {
}
}
//hook 某个函
js hook 对象上的成员函数访问
最新推荐文章于 2023-05-10 11:46:57 发布