Skip to content

misshanya/tgsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TGSH

Telegram bot that provides access to the shell.

Warning

You must not use this for fraudulent purposes. All responsibility when using TGSH rests solely with you

Why I made it?

I often need to access my home computer (which runs Linux, by the way) when I'm away. Since I don't have a public IP at home, setting up SSH under these conditions is tricky. So, I decided to create this project. Hopefully, someone else will find it useful too.

Prerequirements

  • Go 1.24

How to use

1. Clone repo and go to it

git clone https://github.com/misshanya/tgsh
cd tgsh

2. Create Telegram bot in BotFather

3. Fill .env file:

BOT_TOKEN=token-of-your-bot
ALLOWED_USER=id-of-your-account

ALLOWED_USER is id of your Telegram account which can be obtained via other bots or Telegram clients

4. Build the bot and run it

go build -o bot .
./bot

5. Start using :)

/start - greeting and some info

any other text implements as a shell command and executes on your system

About

TG bot that provides shell access to your machine without public ip

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages