Small python code which can be handy when using telegram and you don't want to use VPS again and again. By configuring the code in your VPS, You can execute commands and get your output within telegram. It can also be very useful in performing Recon.
-
Goto @BotFather and create newbot, you will be given a unique token.
-
Replace the token with value XXXX on config.json with the unique API Token
-
Send "/id" to @MissRose_bot to recieve your chat id to be used for authentication.
-
Replace the chat id with value YYYY in config.json.
-
Clone this repo and install requirements by:
pip3 install -r requirements.txt
-
Navigate to the repo directory and run the program with
python3 main.py
-
You are ready to go, type /start on bot's DM to get started.
- /cmd {yourCommand}
- /send {desiredfilename}
Let me know if i need to provide video tutorial for setup, I will be more than happy to help you out.
Pull Requests are also appreciated if you have idea to improve. 🙂