Skip to content

Instantly share code, notes, and snippets.

@dahoat
Last active February 14, 2023 10:35
Show Gist options
  • Save dahoat/b320feac09359beb115033932db8ff4a to your computer and use it in GitHub Desktop.
Save dahoat/b320feac09359beb115033932db8ff4a to your computer and use it in GitHub Desktop.
ImHex Google Authenticator export pattern
struct GoogleAuthenticatorExport {
  u8 firstNewline;
  u8 entryLen;
  u8 secondNewline;
  u8 secretLen;
  char secret[secretLen];
  u8 unknown[entryLen-2-secretLen];
};

GoogleAuthenticatorExport data[2] @ 0x00;

Modify number of entries (data[...]) accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment