Python Script for Telegram Bot is specially builded for pentest & bug bounty. It’s like a telegram shell.
You will be notified when your task(command line) is finished with results. This bot make long time tasks by you, taking off the need of your attention if it’s finished.
- Developed with Python 3.8.5
You need to install the Python Telegram bot api used for this bot(pyTelegramBotAPI).
$ pip3 install pyTelegramBotAPI
Steps to run your bot
Create a bot with @botfather and replace the API Token gaven by @botfather in the script at line 12:
TOKEN = 'XXXXXX:XXXXXXXXXXXXXXXX'
And add the ID number(s) of the user(s) who is/are authorized at line 14:
authorizedUsers = [123456789, 987654321]
to know which is your User ID go to @userinfobot
Now just run the script:
$ python3 bot.py
If your output is too large, you should save it in a file with no output.
\nmapadv example.com > resultScan.txt
\nmapadv example.com -oN resultScan.txt
\exec echo 'awesome bot!' > yesItIs.txt
├── /start # starts/reset the bot │ └── Main Menu # keyboard personalized options │ ├── info serv │ │ ├── Temp # temperature of your device │ │ ├── Hard Disk Space │ │ ├── RAM # info of your RAM │ │ └── CPU # Usage of your CPU │ ├── ip route │ ├── public ip │ ├── active processes │ ├── netstat # by services │ └── who # who is logged on your device ├── /exec # execute a command line that you give E.g.: │ # /exec echo 'awesome bot!') ├── /amassenum # /amassenum example.com -> $ amass enum -d example.com ├── /nmapadv # /nmapadv example.com -> $ nmap -sC -sV -Pn -p- └── /help # show list of commands avaibles
There is a
logFileBot.txt file where will log all commands sended by user(s). In addition, if it’s the case someone trying to use your bot without your authorization.
- no one until now… You can be here! 😀 Open to new commands, suggests, changes or improvements.
This project is licensed under the GNU General Public License v3.0
- To Va5c0, for his previus work.