All Projects → fnzv → trsh

fnzv / trsh

Licence: MIT license
Telegram Remote-Shell

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to trsh

kotlogram2
An convinient wrapper for kotlogram
Stars: ✭ 17 (-72.58%)
Mutual labels:  telegram-api
ssgo
A SSH-based command line tool for operating remote hosts.
Stars: ✭ 32 (-48.39%)
Mutual labels:  sysadmin
slackcat
Concatenate files(s), or stdin, directly to Slack. 🐈
Stars: ✭ 19 (-69.35%)
Mutual labels:  sysadmin
telegram-github-search-bot
A Github search bot for Telegram
Stars: ✭ 67 (+8.06%)
Mutual labels:  telegram-api
opentele
A Python Telegram API Library for converting between tdata and telethon sessions, with built-in official Telegram APIs.
Stars: ✭ 90 (+45.16%)
Mutual labels:  telegram-api
Bybit-Auto-Trading-Bot-Ordes-placed-via-TradingView-Webhook
Python based Trading Bot that uses TradingView.com webhook JSON alerts to place orders(buy/sell/close/manage positions/TP/SL/TS etc.) on Bybit.com. Hire me directly here https://www.freelancer.com/u/Beannsofts for any assistance
Stars: ✭ 235 (+279.03%)
Mutual labels:  telegram-api
telegram-osint-lib
Telegram scenario-based API aimed at OSINT
Stars: ✭ 131 (+111.29%)
Mutual labels:  telegram-api
grouphelperbot
A Telegram Bot made to help group admins, with Italian/English support.
Stars: ✭ 26 (-58.06%)
Mutual labels:  telegram-api
awesome-systools
Awesome Systools is a collection of sysadmins daily handy tools.
Stars: ✭ 81 (+30.65%)
Mutual labels:  sysadmin
devops-ninja
This is a collection of some very useful command-line commands that eases the life of a DevOps Engineer.
Stars: ✭ 27 (-56.45%)
Mutual labels:  sysadmin
JavaTelegramBot-API
Java Telegram Bot API
Stars: ✭ 34 (-45.16%)
Mutual labels:  telegram-api
node-tdlib
TDLib Binding with Telegram Bot API Reimplemention for Node.js
Stars: ✭ 35 (-43.55%)
Mutual labels:  telegram-api
superfans
Tools for managing fans on Supermicro chassis
Stars: ✭ 44 (-29.03%)
Mutual labels:  sysadmin
dnstrace
Yet another DNS query tracing/analysis tool written in Go
Stars: ✭ 35 (-43.55%)
Mutual labels:  sysadmin
teleapi
🚀 The useful library to simplify your work with Telegram Bot API
Stars: ✭ 58 (-6.45%)
Mutual labels:  telegram-api
TGCopyBot
A python script to copy telegram messages to another chat (without forwarding)
Stars: ✭ 67 (+8.06%)
Mutual labels:  telegram-api
maturity-models
Maturity models for IT, Agile, DevOps, TOGAF, Six Sigma, P3M3, etc.
Stars: ✭ 157 (+153.23%)
Mutual labels:  sysadmin
telegram
📚 Golang bindings for Telegram API
Stars: ✭ 15 (-75.81%)
Mutual labels:  telegram-api
tdlight-telegram-bot-api
The TDLight Telegram Bot API is an actively enhanced fork of the original Bot API, featuring experimental user support, proxies, unlimited files size, and more.
Stars: ✭ 71 (+14.52%)
Mutual labels:  telegram-api
Telegram-mailer
Web-application for sending messages to list of users. Use several accounts to avoid ban.
Stars: ✭ 28 (-54.84%)
Mutual labels:  telegram-api

TRSH

Telegram Remote-Shell is a python script that allows to comunicate to your Linux server via Telegram API (with bots).

UPDATE: Hey, there is a remake in go of the same Python script in Golang here


Telegram

Requirements

  • Linux System
  • Bot created from @BotFather via Telegram
  • Software Packages: python-pip (to install telepot) & basic linux tools like nmap,dig,mtr (optional)

Installation

The setup is quite easy:

  • Chat with BotFather to create a Bot ( https://telegram.me/botfather ), just launch the command /newbot to get your Telegram Token.
    Open the bot chat and send some messages to activate the bot.

  • Launch this command on your Linux system:

cd /home && git clone https://github.com/fnzv/trsh.git && cd trsh && bash install.sh 
WARNING: this command will install the required/missing packages ( supervisor, dnsutils, python-pip, python, nmap, mtr, pip-telepot )
NOTES:
  • You will be asked to insert your Telegram Bot Token aquired on the first step.

  • The script will guess your Sender-id based on the messages you send on the first step.

  • If you cannot figure out how to find your Sender-id manually launch the script get-sender-id.py from commandline and you will get a raw output containing chat_id,sender_id,username,type

After you finished the installation the python script will run as a system service with supervisor.

Usage

  • /ping - Tests connectivity
  • /dig - Resolve the given domain, supports RR.. example /dig A google.com or /dig MX google.com
  • /mtr - Execute a mtr with a following report
  • /nmap - Execute a nmap -Pn -A
  • /curl - Execute a curl request
  • /whois - Whois lookup
  • /sysinfo - Display generic system information (disk usage, network & memory)
  • /sh - Execute a command with Bash.. example /sh cat namefile , /sh ps auxf | grep ssh

Tests

The following scripts are being tested on Ubuntu 16.04 LTS, Raspian Jessie and marked as working.

Contributors

Feel free to open issues or send me an email

License

Code distributed under MIT licence.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].