Few scripts to help to analyse the data stored in the official Telegram Android app. Written in Python 3.
Extracts the files/tgnet.dat
file that contains datacenter's IP addresses, master secrets and other. This script parses the file and prints all the values to standard output.
python tgnet-extractor.py <path>
<path>
path to thetgnet.dat
file you need to extract from a mobile phone manually, for example by using adb:adb pull /data/data/org.telegram.messenger.beta
python tgnet-extractor.py examples/tgnet.dat
Extracts messages from the bytes stored in messages.data sqlite column of Telegram.
python message-extractor.py <path>
<path>
path to the byte file you need to extract manually from the Telegram's sqlite database
python message-extractor.py examples/regular-message-1.dat
Extracts info from the bytes stored in enc_chats.data sqlite column of Telegram which contains the secret chat's main auth_key secret and other.
python encrypted-chat-extractor.py <path>
<path>
path to the byte file you need to extract manually from the Telegram's sqlite database
python encrypted-chat-extractor.py examples/encrypted-chat-info.dat
Copyright 2016 Tomas Susanka
Licensed under the MIT license.