Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/MihaZupan/TelegramStorageParser

Library to decrypt and parse Telegram Desktop's storage
https://github.com/MihaZupan/TelegramStorageParser

decryption localstorage tdesktop telegram telegram-desktop

Last synced: 12 days ago
JSON representation

Library to decrypt and parse Telegram Desktop's storage

Awesome Lists containing this project

README

        

# Telegram Storage Parser
[![Build Status](https://travis-ci.org/MihaZupan/TelegramStorageParser.svg?branch=master)](https://travis-ci.org/MihaZupan/TelegramStorageParser)

Program to decrypt and parse Telegram Desktop's local storage

This project relies on OpenSSL for crypto primitives. See their [license here](https://www.openssl.org/source/license.txt).

Build on Net Standard 1.3

## Usage example

```csharp
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](https://github.com/MihaZupan/TelegramStorageParser/blob/master/examples/TelegramDesktopExample/Program.cs)

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

## Brute forcing the passcode

A gpu based cracker is now available in
[John the Ripper](https://github.com/magnumripper/JohnTheRipper)
thanks to [@kholia](https://github.com/kholia)