Ngrok Bot (Ng-Bot) publishes updated ngrok URLs to telegram chat ids and restricts other users to access the bot or on discord using webhook url.
Note
: This bot may be used for malicious purposes too. Its upto users how they use this tool/bot. Author is not responsible for user's action in any manner.
-
Install from pypi
python3 -m pip install ng-bot
OR
-
Install from main branch
python3 -m pip install git+https://github.com/dmdhrumilmistry/ng_bot.git
-
Clone repo
git clone --depth=1 https://github.com/dmdhrumilmistry/ng_bot.git
-
Change directory
cd ng_bot
-
Install package
python3 -m pip install .
-
Create Ngrok account
-
Complete Sign Up process
-
Add new AUTH TOKEN from dashboard
-
Store variables in
.env
fileNGROK_AUTH_TOKEN='your_auth_token' TELE_BOT_TOKEN='telegram_bot_token' ALLOWED_USER_IDS=tele_user_id1, tele_user_id2, tele_user_id3 DISCORD_WEBHOOK_URL='webhook-url'
Above variables can also be stored in environment variables
-
Start application
# for telegram python3 -m ng_bot --http 8080 --tcp 22 4444 --platform telegram # for discord python3 -m ng_bot --tcp 22 --platform discord
-
Disable password based authentication in
/etc/ssh/ssh_config
PasswordAuthentication no
-
Add client's public key to server's
~/.ssh/authorized_keys
file
Now only users with authorized public key can access server
- Read Instructions