Created
July 24, 2020 09:30
-
-
Save letanure/93f2137bd5d677d0729ddde5bd785173 to your computer and use it in GitHub Desktop.
My company uses lastpass and dont allow export passwords and usernames. open the web interface and run on console
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
var edits = document.querySelectorAll('.itemButton.edit') | |
var count = 0 | |
var interval = setInterval(async function(){ | |
count++ | |
edits[count].click() | |
setTimeout(() => { | |
var url = document.getElementById('siteDialogURL').value | |
var name = document.getElementById('siteDialogName').value | |
var username = document.getElementById('siteDialogUsername').value | |
var password = document.getElementById('siteDialogPassword').value | |
console.log(`"${name}","${url}","${username}","${password}"`) | |
document.getElementById('dialogCloseButton').click() | |
}, 1000); | |
if(count >= edits.length) { | |
clearInterval(interval); | |
} | |
}, 3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment