Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const your_username = ""; // email
- const your_master_password = ""
- const your_iterations = 100100;
- const response = await fetch("https://lastpass.com/lmiapi/authenticator/backup", {
- cache: 'no-cache',
- headers: {
- 'X-CSRF-TOKEN': g_token
- }
- });
- response.json().then(data => {
- const key = make_lp_key_iterations(your_username, your_master_password, your_iterations);
- const userDataDecrypted = JSON.parse(dec(data.userData, key));
- userDataDecrypted.accounts.forEach(account => {
- console.log(`otpauth://totp/${account.issuerName}/${account.originalUserName}?digits=${account.digits}&secret=${account.secret}&period=${account.timeStep}`);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement