{"id":29010583,"url":"https://github.com/theqmaks/telegram-web-unpacked","last_synced_at":"2026-04-30T16:33:45.065Z","repository":{"id":300396340,"uuid":"1006064105","full_name":"TheQmaks/telegram-web-unpacked","owner":"TheQmaks","description":"Unpacked Telegram web app for research.","archived":false,"fork":false,"pushed_at":"2025-06-21T12:39:07.000Z","size":3060,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-30T16:33:37.703Z","etag":null,"topics":["bundle-analysis","client-side-security","devtools","esbuild","javascript","penetration-testing","reverse-engineering","security-research","source-map","static-analysis","telegram-web","web-security","webpack"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheQmaks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-21T12:11:44.000Z","updated_at":"2026-01-29T07:03:33.000Z","dependencies_parsed_at":"2025-06-21T13:46:36.885Z","dependency_job_id":null,"html_url":"https://github.com/TheQmaks/telegram-web-unpacked","commit_stats":null,"previous_names":["theqmaks/telegram-web-unpacked"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheQmaks/telegram-web-unpacked","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheQmaks%2Ftelegram-web-unpacked","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheQmaks%2Ftelegram-web-unpacked/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheQmaks%2Ftelegram-web-unpacked/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheQmaks%2Ftelegram-web-unpacked/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheQmaks","download_url":"https://codeload.github.com/TheQmaks/telegram-web-unpacked/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheQmaks%2Ftelegram-web-unpacked/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32470879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bundle-analysis","client-side-security","devtools","esbuild","javascript","penetration-testing","reverse-engineering","security-research","source-map","static-analysis","telegram-web","web-security","webpack"],"created_at":"2025-06-25T16:32:08.740Z","updated_at":"2026-04-30T16:33:45.061Z","avatar_url":"https://github.com/TheQmaks.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Web Unpacked\n\n\u003e **Disclaimer**\n\u003e This repository is provided **for research and educational purposes only**. The author does **not** endorse using these materials for unauthorized access to Telegram or any other web application.\n\n---\n\n## Why This Project Exists\n\nModern web apps are shipped as heavily‑minified **bundles**. Surprisingly often, even large companies forget to remove their **source‑map files** (`*.map`) from production. A published source map contains the complete mapping back to the original project structure-real variable names, module paths, folder hierarchy, and more.\n\nIf a team uses custom protocols or proprietary crypto, an exposed map file:\n\n* removes most of the grunt work from reverse engineering;\n* instantly reveals real function and class names;\n* can slash analysis time from days to minutes.\n\n💡 **Bottom line:** the time gap between *“read the source”* and *“deminify the bundle”* becomes huge in favor of the attacker.\n\n---\n\n## Spotting Source Maps in Chrome\n\n1. Open **DevTools → Network**, then reload the page.\n2. Filter by `.map` or by the string `sourceMappingURL`; look for `.js.map` / `.css.map` requests.\n3. Alternatively, open **Sources** → expand `webpack://` or `(no domain)` - readable modules mean the map is already loaded.\n4. Chrome often shows a console warning such as:\n\n   ```text\n   DevTools failed to load source map: Could not load content for …/app.js.map\n   ```\n\n### How Maps Are Embedded\n\n| Variant                                          | Where to look                                        |\n| ------------------------------------------------ | ---------------------------------------------------- |\n| **Inline** (`//# sourceMappingURL=data:…`)       | At the very end of the minified file (`app.min.js`)  |\n| **External** (`//# sourceMappingURL=app.js.map`) | Separate sibling file fetched via a normal HTTP call |\n\n---\n\n## Auto‑Unpacking with **kaifu**\n\n[`kaifu`](https://github.com/ozio/kaifu) is a CLI tool that takes one or many `*.map` files and rebuilds the original directory tree with readable source files.\n\n### Quick Start\n\n```bash\n# Install globally\nnpm i -g kaifu\n\n# Unpack a single .map\nkaifu -o ./src ./dist/app.js.map\n```\n\n---\n\n## Next Steps After Extraction\n\n* Perform static analysis on the recovered sources.\n* Dive into custom protocols or crypto by reading the now‑readable functions/classes.\n* Diff client versions to track logic changes over time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheqmaks%2Ftelegram-web-unpacked","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheqmaks%2Ftelegram-web-unpacked","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheqmaks%2Ftelegram-web-unpacked/lists"}