Skip to content

Latest commit

Β 

History

History
96 lines (60 loc) Β· 2.17 KB

README.md

File metadata and controls

96 lines (60 loc) Β· 2.17 KB

Lang_farsi فارسی

🧠 PowerShell Controller via Bale Bot

A powerful Windows automation bot built on Bale Messenger platform.
Control your Windows machine remotely by executing PowerShell commands, managing files/folders, and installing software via Chocolatey or Winget. Includes auto-start via registry and admin-only access control.

⚠️ Use this project only for educational purposes or on machines you own/have permission to control!


✨ Features

  • πŸ” Admin-only access (restricted by chat ID)
  • πŸ“₯ Upload/download files and folders through Bale Bot
  • πŸ§‘β€πŸ’» Execute unlimited PowerShell commands for admins
  • πŸ“¦ Compress folders into ZIP before sending
  • πŸ“‚ Option to receive files/folders zipped or uncompressed
  • πŸ–₯️ Auto-start with Windows Registry entry
  • πŸ“¦ Install programs silently using Chocolatey or Winget
  • πŸ“‚ Support for custom download directories

βš™οΈ Setup & Installation

git clone https://github.com/matinhajiseftjani400/Remote-PowSH.git
cd Remote-PowSH
pip install -r requirements.txt

Set your Bale bot token environment variable

  • On Linux/macOS:
export BOT_TOKEN=your_bale_bot_token_here
  • On Windows (CMD):
set BOT_TOKEN=your_bale_bot_token_here

Run the bot

python main.py

πŸ” Admin Configuration

To restrict bot control, set your chat ID(s) in main.py:

ADMIN_CHAT_IDS = {123456789}  # Replace with your chat ID(s)

How to find your chat ID?

Send a message to this Bale bot πŸ‘‰ @id_number_mrn_bot It replies with your chat ID number. Use that number above.


πŸ“¦ Program Installation

Send command to bot:

install <program_name>

Example:

install firefox

Bot tries Winget first, then falls back to Chocolatey automatically.


πŸ“„ MIT license


πŸ‘¨β€πŸ’» Developed by: Matin HajiSeftjani