Skip to content

Instantly share code, notes, and snippets.

@Tracnac
Created September 23, 2022 16:28
Show Gist options
  • Select an option

  • Save Tracnac/bae647dac7c1510fc7be8ec30cd96b83 to your computer and use it in GitHub Desktop.

Select an option

Save Tracnac/bae647dac7c1510fc7be8ec30cd96b83 to your computer and use it in GitHub Desktop.
Extract Authy TOTP Code #js #security
console.clear();
        console.warn('Heres Your Authy TOTP Secrets');
        console.warn('Click Any Group To Expand / Collapse It');
        console.warn('If Nothing Shows Make Sure To Login To Authy & Enter Your Password');
        appManager.getModel().forEach(function(i){
            if(i.markedForDeletion === false){
                console.groupCollapsed(i.name);
                console.log('TOTP Secret:',i.markedForDeletion === false ? i.decryptedSeed : hex_to_b32(i.secretSeed));
                console.log('TOTP URI:','otpauth://totp/'+encodeURIComponent(i.name)+'?secret='+i.decryptedSeed+'&issuer='+i.accountType);
                console.log('Google QR Code:','https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/'+encodeURIComponent(i.name)+'?secret='+i.decryptedSeed+'&issuer='+i.accountType);
                console.groupEnd();
            }
        });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment