首页 > 其他分享 >hook 专题

hook 专题

时间:2022-08-22 04:33:05浏览次数:47  
标签:function 专题 XMLHttpRequest log hook console open

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
From: https://www.cnblogs.com/smilegg/p/16611604.html

相关文章