https://github.com/dmdhrumilmistry/ng_bot
bot to push ngork links on telegram/discord
https://github.com/dmdhrumilmistry/ng_bot
discord discord-bot dmdhrumilmistry hacking ngrok port-forwarding python python3 telegram telegram-bot
Last synced: about 1 month ago
JSON representation
bot to push ngork links on telegram/discord
- Host: GitHub
- URL: https://github.com/dmdhrumilmistry/ng_bot
- Owner: dmdhrumilmistry
- License: mit
- Created: 2022-09-16T06:22:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-07-05T07:30:25.000Z (12 months ago)
- Last Synced: 2025-07-05T08:32:00.944Z (12 months ago)
- Topics: discord, discord-bot, dmdhrumilmistry, hacking, ngrok, port-forwarding, python, python3, telegram, telegram-bot
- Language: Python
- Homepage:
- Size: 66.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ng-Bot
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.
## Installation
### Using pip
- Install from pypi
```bash
python3 -m pip install ng-bot
```
**OR**
- Install from main branch
```bash
python3 -m pip install git+https://github.com/dmdhrumilmistry/ng_bot.git
```
### Manual
- Clone repo
```bash
git clone --depth=1 https://github.com/dmdhrumilmistry/ng_bot.git
```
- Change directory
```bash
cd ng_bot
```
- Install package
```bash
python3 -m pip install .
```
## Usage
- Create Ngrok account
- Complete Sign Up process
- Add new AUTH TOKEN from [dashboard](https://dashboard.ngrok.com/get-started/your-authtoken)
- Store variables in `.env` file
```bash
NGROK_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
```bash
# for telegram
python3 -m ng_bot --http 8080 --tcp 22 4444 --platform telegram
# for discord
python3 -m ng_bot --tcp 22 --platform discord
```
## Security
- Disable password based authentication in `/etc/ssh/ssh_config`
```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
## Run as a Service
- Read [Instructions](./service/README.md)