MihaZupan / TelegramStorageParser

Library to decrypt and parse Telegram Desktop's storage
Other
59 stars 20 forks source link
decryption localstorage tdesktop telegram telegram-desktop

Telegram Storage Parser

Build Status

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

Usage example

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");
}

Example project

View project source

It can:

Parsing of other data types (stickers, messages ...) will follow

Brute forcing the passcode

A gpu based cracker is now available in John the Ripper thanks to @kholia