Last active
September 27, 2020 02:34
-
-
Save h1code2/11b492e11ed908297346c34a9fb6d18c to your computer and use it in GitHub Desktop.
FRIDA HOOK软件账号Cookie信息 #frida # cookie #hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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