Terminal Bot which will Execute your Commands From telegram bot!

Overview

Terminal-Bot

see this bot alive: https://t.me/HerokuTerminal_Bot

With this bot you can execute system commands on your server.

how to config?


  • clone or fork this repo
  • give me a star 😎
  • edit the config.py file like this:
token = ""  # from @BotFather
app_id = 6  # https://my.telegram.org/apps
app_hash = ""  # https://my.telegram.org/apps
allowed = [12345678, 87654321]  # replace to your id (get your id in @userinfobot)

logger: bool = True  # set it True to get logs in some channel...
log_channel = -100

# if logger is True your channel ID and add it here.
# (don't forget to add your bot as admin in your channel...)
  • run pip3 install -r requirements.txt
  • and than run it on your sever!

how to deploy


Todo

  • Add option to download and upload files...
  • Add /cd command
  • Add more commands...
Comments
  • Terminal.py updated.

    Terminal.py updated.

    The function readline() change to read(). Some stdout or errout is multiline but ouput one line by using readline() function such as yt-dlp,due to the readline() just read until a sequence of bytes ending with '\n'.

    opened by canwushuang 1
  • App_id  = int( os.environ.get(

    App_id = int( os.environ.get("ID") ) returns error as " os.environ.get("ID") " returns None type

    hi i tried giving the app id as integer directly to the App_id variable but im getting NO API KEY FOUND in a virtual machine

    i think there is a bug in the case of vps as " os.environ.get("ID") " returns None type

    opened by chvsain9 1
  • Line 41,56 in markups.py, passing the fullname to the callback function maybe not the best way.

    Line 41,56 in markups.py, passing the fullname to the callback function maybe not the best way.

    Telegram are limited the InlineKeyboardButton up to 64 characters.I think it maybe can't to pass to the callback function when the name of the folder or file is too long.

    opened by canwushuang 1
  • Project asks for Client Credentials While only Bot Token should be required

    Project asks for Client Credentials While only Bot Token should be required

    this project asks in the config.py and in the video tutorial to input a client account credentials via the APP_ID and API_HASH , in reality this shouldnt be a requirement because the only thing needed should be the bot Token, this project uses Pyrogram as a telegram implementation, Client Side credentials arent needed to work with bots and its just a useless and possible risky information to give away. please address this issue and delete the need to input these 2 informations

    opened by AllesWasTaken 1
  • Include requests in requirements.txt

    Include requests in requirements.txt

    Deploy via https://dashboard.heroku.com/new?template=https://github.com/moshe-coh/Terminal-Bot Heroku workers log: ModuleNotFoundError: No module named 'requests'

    opened by devsdocs 0
  • Line 30,39 In terminal.py, readline() maybe not a good methed to get the correct std/err io stream.

    Line 30,39 In terminal.py, readline() maybe not a good methed to get the correct std/err io stream.

    Reference: https://docs.python.org/3.8/library/asyncio-stream.html#asyncio.StreamReader

    #coroutine readline() 'If EOF is received and \n was not found, the method returns partially read data.'

    I think the partially data maybe take some issue or bug when run a cmd.

    opened by canwushuang 0
  • Requesting Some visible features

    Requesting Some visible features

    please add there feartures

    - live feed whenever the bot is running any command
    - send currently running command stats when evers /status command is given
    - make shell interactive
    - stop currently running command when /kill command is given
    
    
    opened by Frozen12 1
  • Non interactive shell

    Non interactive shell

    The terminal only work with non-interactive command.

    to reproduce issue you can use the script here:

    #!/bin/sh
    
    # Script name: io1.sh
    
    # This script prompts for input and prints messages
    # involving the input received.
    
    echo "Enter your name: \c" read name junk
    
    echo "Hi $name, how old are you? \c"
    read age junk
    
    echo "\n\t$age is an awkward age, $name,"
    echo "  You’re too old to depend on your parents,"
    echo "and not old enough to depend on your children."
    

    Please add an option to enable interactive terminal to run interactive shell commands

    opened by Frozen12 1
Owner
Moshe
my name is: moshe
Moshe
Pincer-ext-commands - A simple, lightweight package for pincer prefixed commands

pincer.ext.commands A reimagining of pincer's command system and bot system. Ins

Vincent 2 Jan 11, 2022
null 1 Feb 18, 2022
A telegram bot which can show you the status of telegram bot

BotStatus-Ts-Bot An open source telegram Bot Status bot For demo you can check here The status is updated in every 1 hour About Bot This is a Bot stat

Ts_Bots 8 Nov 17, 2022
An Telegram Bot By @AsmSafone To Stream Videos in Telegram Voice Chat. This is Also The Source Code of The Bot Which is Being Used In @SafoTheBot Group! ❤️

Telegram Video Player Bot (Beta) An Telegram Bot By @AsmSafone To Stream Videos in Telegram Voice Chat. Special Features Supports Live Streaming From

SAF ONE 206 Jan 3, 2023
Web-music-bot - A telegram bot which get a *site Url* and sends all songs contain in the Url to telegram

web music bot this is a telegram bot which get a site Url and sends all songs co

Arya Shabane 4 Apr 2, 2022
A simple tool which automate commands of discord economy bots

A simple tool which automate commands of discord economy bots. Fully configurable using an intuitive configuration made in YAML

SkydenFly 5 Sep 18, 2022
A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

Aran 1 Oct 13, 2021
Aqui está disponível GRATUITAMENTE, um bot de discord feito em python, saiba que, terá que criar seu bot como aplicação, e utilizar seu próprio token, e lembrando, é um bot básico, não se utiliza Cogs nem slash commands nele!

BotDiscordPython Aqui está disponível GRATUITAMENTE, um bot de discord feito em python, saiba que, terá que criar seu bot como aplicação, e utilizar s

Matheus Muguet 4 Feb 5, 2022
Your custom slash commands Discord bot!

Slashy - Your custom slash-commands bot Hey, I'm Slashy - your friendly neighborhood custom-command bot! The code for this bot exists because I'm like

Omar Zunic 8 Dec 20, 2022
Your custom slash commands Discord bot!

Slashy - Your custom slash-commands bot Hey, I'm Slashy - your friendly neighborhood custom-command bot! The code for this bot exists because I'm like

Omar Zunic 3 Jan 8, 2022
Free and Open Source Channel/Group Voice chat music player for telegram ❤️ with button support Heroku Commands

ZeusMusic Requirements ?? FFmpeg NodeJS nodesource.com Python 3.7 or higher PyTgCalls MongoDB 2nd Telegram Account (needed for userbot) ?? Get SESSION

ZeusNetwork 4 Jan 3, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram VCVideoPlayBot An Telegram Bot By @ZauteKm To Stream Videos in Telegram Voice Chat. NOTE: Make sure you have started a VoiceChat in your Grou

Zaute 20 Oct 21, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

SUBIN 449 Dec 27, 2022
ANKIT-OS/STYLISH-TEXT is a special repository. Its Is A Telegram Bot Which Can Translate Your Text Into 100+ Language

?? ᴳᴼᴼᴳᴸᴱ⁻ᵀᴿᴬᴺᔆᴸᴬᵀᴱᴿ ?? The owner would not be responsible for any kind of bans due to the bot. • ⚡ INSTALLING ⚡ • • ??️ Lᴀɴɢᴜᴀɢᴇs Aɴᴅ Tᴏᴏʟs ?? • If

ANKIT KUMAR 1 Dec 23, 2021
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.

Maintenance Bot A Telegram Repo For Devs To Controll The Bots Under Maintenance About This Bot This Bot Is For Developers, If Your Bot Is Down, Use Th

Vɪᴠᴇᴋ 47 Dec 29, 2022
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.

Maintenance Bot A Telegram Repo For Devs To Controll The Bots Under Maintenance About This Bot This Bot Is For Developers, If Your Bot Is Down, Use Th

Vɪᴠᴇᴋ 47 Dec 29, 2022
Based Telegram Bot and Userbot To Play Music in Your Telegram Groups With Some Cool Extra Features! 🥰

CallMusicPlus69 This Repo base on! ??️ A CallsMusic Based Telegram Bot and Userbot To Play Music in Your Telegram Groups With Some Cool Extra Features

brut✘⁶⁹ // ユスフ 6 Jun 26, 2022
📢 Video Chat Stream Telegram Bot. Can ⏳ Stream Live Videos, Radios, YouTube Videos & Telegram Video Files On Your Video Chat Of Channels & Groups !

Telegram Video Chat Bot (Beta) ?? Video Chat Stream Telegram Bot ?? Can Stream Live Videos, Radios, YouTube Videos & Telegram Video Files On Your Vide

brut✘⁶⁹ // ユスフ 15 Dec 24, 2022