Skip to content

Instantly share code, notes, and snippets.

@ahamilton9
Last active May 7, 2019 14:06
Show Gist options
  • Save ahamilton9/d3bce52f6a2c4d63702cf3a5181ef734 to your computer and use it in GitHub Desktop.
Save ahamilton9/d3bce52f6a2c4d63702cf3a5181ef734 to your computer and use it in GitHub Desktop.
Dump your Authy Chrome Extension Secrets as QR Codes
// Go to Extensions > Developer Mode On > Authy Details > main.html Console
// Once you're there, open the main browswer and decrypt Authy
console.clear();
console.warn('TOTP QR Codes. Authenticate Authy if nothing appears. Copied to clipboard.');
output = '';
appManager.getModel().forEach(function(i){
if(i.markedForDeletion === false){
//output += '"' + i.name + '",' + i.decryptedSeed; // Just the Secret, no QR Code
output += '"' + i.name + '",' + 'https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/'+encodeURIComponent(i.name)+'%3fsecret='+i.decryptedSeed+'%26issuer='+i.accountType+"\n";
}
});
console.log(output);
copy(output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment