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

posted @ 2022-08-22 04:18  SmileBlog  阅读(25)  评论(0)    收藏  举报