Skip to content

rhshourav/CryoCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryoCore Logo

🤖 CryoCore™️

Status Python License Telegram Bot

A Python-based Telegram bot that:

  • Stores credentials, tokens, logs, and pre-stored commands in SQLite databases.
  • Executes shell commands remotely via Telegram (cmd <command>).
  • Sends back the command output to your Telegram chat.

⚡ Features

  • Database storage:

    • credentials.db → Stores the Telegram bot token securely.
    • commands.db → Stores pre-defined reusable commands.
    • logs.db → Stores logs of all executed commands, including outputs and timestamps.
  • Command Execution:

    • Prefix messages with cmd to run commands.
    • Example:
      cmd dir
      cmd echo Hello World
      
    • Supports both custom shell commands and pre-stored commands.
  • Pre-defined Commands:

    • Add new commands:
      addcmd <name> | <shell command>
      
    • List all stored commands:
      listcmd
      
  • Logging:

    • Every command execution is logged with:
      • Command name (if pre-stored)
      • Actual shell command
      • Output
      • Timestamp
  • Auto Setup:

    • Databases are created automatically on first run if missing.
    • Prompts for Telegram bot token if none is stored.

🛠 Requirements

  • Python 3.10+
  • Install dependencies:
    pip install python-telegram-bot==20.7

🚀 Usage

  1. Clone the repository:

    git clone https://github.com/rhshourav/CryoCore.git
    cd CryoCore
  2. Run the bot:

    python CryoCoreBot.py
  3. Use Telegram commands:

    • Run a shell command: cmd <command>
    • Add a pre-defined command: addcmd <name> | <command>
    • List pre-defined commands: listcmd

About

A Utility With smart features like sending logs or commands via Telegram or Discord.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •