其他分享
首页 > 其他分享> > hook 专题

hook 专题

作者:互联网

hook ajax返回一般用于返回解密的时候的断点

(function() {
var origOpen = XMLHttpRequest.prototype.open;

XMLHttpRequest.prototype.open = function() {
// console.log('request started!');
this.addEventListener('load', function() {
console.log(this.responseText); // 得到Ajax的返回内容
debugger;});
origOpen.apply(this, arguments);
};
})();

标签:function,专题,XMLHttpRequest,log,hook,console,open
来源: https://www.cnblogs.com/smilegg/p/16611604.html