你的位置:首页 > 信息动态 > 新闻中心
信息动态
联系我们

hook 专题

2022/8/22 5:09:39

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