Program to decrypt and parse Telegram Desktop's local storage
This project relies on OpenSSL for crypto primitives. See their license here.
Build on Net Standard 1.3
using MihaZupan.TelegramStorageParser;
using MihaZupan.TelegramStorageParser.TelegramDesktop;
string tDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/Telegram Desktop/tdata";
ParsingState parsingState = LocalStorage.TryParse(tDataPath, out LocalStorage localStorage);
if (parsingState == ParsingState.Success)
{
Console.WriteLine("Phone number: " + localStorage.LoggedPhoneNumber ?? "not present");
}
It can:
- Parse local storage
- Export all cached images
- Export all cached voice recordings
- Export MTProto keys
- Export a bunch of miscellaneous settings
Parsing of other data types (stickers, messages ...) will follow
A gpu based cracker is now available in John the Ripper thanks to @kholia