Test vulnerable password Firefox
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
const LoginInfo = Components.Constructor( | |
"@mozilla.org/login-manager/loginInfo;1", | |
"nsILoginInfo", | |
"init" | |
); | |
let login = new LoginInfo( | |
"https://login.yahoo.com", | |
"", | |
null, | |
"sample_username", | |
"breached_password" | |
); | |
Services.logins.addLogin(login); | |
Services.logins.modifyLogin(login, LoginHelper.newPropertyBag({ | |
timeCreated: 1326219463000, | |
timePasswordChanged: 1326219463000, | |
})) | |
let vulnerableLogin = new LoginInfo( | |
"https://www.google.com", | |
"", | |
null, | |
"other_username", | |
"breached_password" | |
); | |
Services.logins.addLogin(vulnerableLogin); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enable browser chrome and add-on debugging toolboxes
.