Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2021
1,143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. const your_username = ""; // email
  2. const your_master_password = ""
  3. const your_iterations = 100100;
  4.  
  5. const response = await fetch("https://lastpass.com/lmiapi/authenticator/backup", {
  6. cache: 'no-cache',
  7. headers: {
  8. 'X-CSRF-TOKEN': g_token
  9. }
  10. });
  11.  
  12. response.json().then(data => {
  13. const key = make_lp_key_iterations(your_username, your_master_password, your_iterations);
  14. const userDataDecrypted = JSON.parse(dec(data.userData, key));
  15. userDataDecrypted.accounts.forEach(account => {
  16. console.log(`otpauth://totp/${account.issuerName}/${account.originalUserName}?digits=${account.digits}&secret=${account.secret}&period=${account.timeStep}`);
  17. });
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement