Skip to content

Instantly share code, notes, and snippets.

@h1code2
Last active September 27, 2020 02:34
Show Gist options
  • Save h1code2/11b492e11ed908297346c34a9fb6d18c to your computer and use it in GitHub Desktop.
Save h1code2/11b492e11ed908297346c34a9fb6d18c to your computer and use it in GitHub Desktop.
FRIDA HOOK软件账号Cookie信息 #frida # cookie #hook

FRIDA HOOK软件账号Cookie信息

var listJava = Java.use("java.util.List");
var CookieManager = Java.use("java.net.CookieManager");
CookieManager.getCookieStore.implementation = function () {
try{
ue_tool.showUETMenu();
}catch(e){
console.log(e)
}
console.log("getCookieStore ============= start");
var ret = this.getCookieStore();
var cookieList = ret.getCookies();
var cookies = Java.cast(cookieList, listJava);
console.log("ret:", cookies.size());
var cookieStr = "";
for (var i = 0; i < cookies.size(); i++) {
cookieStr += cookies.get(i).toString() + ";"
}
console.log("当前ins账号cookie信息:\n", decodeURIComponent(cookieStr.trim()));
console.log("getCookieStore ============= end");
return ret;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment