Skip to content

Instantly share code, notes, and snippets.

@letanure
Created July 24, 2020 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letanure/93f2137bd5d677d0729ddde5bd785173 to your computer and use it in GitHub Desktop.
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
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