Telegram bot for Hacking & Pentesting

Arbaz Hussain
2 min readJul 22, 2017
  • Motivation :

For lazy people like me ,I Always wanted to run tool’s directly from Messenger instead of Powering on the PC ,Running on VM or from the SSH.

  • HackBot Installation:

https://github.com/arbazkiraak/hackbot

git clone https://github.com/arbazkiraak/hackbot.git
cd hackbot
pip install lxml
pip install telepot
pip install json
pip install urllib2
pip install requests
pip install bs4
Bot API
  • Paste the API key in api.txt in hackbot (Paste it on first line ).
  • And Run , python hackbot.py
  • Hackbot Usage : (Note : All letter’s should be small letter’s)
  • type help
  1. Run Built-in tools of OS (directly Command Execution)
  2. Run Directory-tools :

create a folder with name “pentest” on Desktop because it will look for directory-tools under /root/Desktop/pentest/ folder

add tools under pentest folder
  • now type

tool foldername python scriptname.py

  • tool sub python sublist3r.py -d site.com
  • Just put all tools under Desktop/pentest/

and use it tool foldername scripttype scriptname

scripttype -> Python , Ruby , Perl etc..

Scriptname -> test.py , test.rb etc…

Output

This project is made for educational and ethical testing purposes only. It is the end user’s responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.

--

--