网站:
https://www.sina.com.cn/
目标是获取到SINAGLOBAL,Apache,UM_distinctid三个cookie参数的生成代码
FD注入HOOK代码:
(function() {
var cookieTemp = "";
Object.defineProperty(document, "cookie", {
set: function(val) {
if (val.indexOf("Apache=") != -1) {
debugger ;
}
console.log("Hook捕获Cookie设置->", val);
cookieTemp = val;
return val;
},
get: function() {
return cookieTemp;
}
})
}
)();
发现断不住
又去掉了if判断直接对所有调用set cookie方法的进行debugger,能debugger住一些像SGUID这些参数的生成,但是对比Application里面的Cookies,能debugger到的参数只占一部分
不知道是什么原因,求指教!