惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
IT之家
IT之家
月光博客
月光博客
U
Unit 42
K
Kaspersky official blog
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
GbyAI
GbyAI
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
云风的 BLOG
云风的 BLOG
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
Engineering at Meta
Engineering at Meta
Recorded Future
Recorded Future
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security @ Cisco Blogs
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Security Archives - TechRepublic
Security Archives - TechRepublic
Webroot Blog
Webroot Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Schneier on Security
S
Secure Thoughts
The Register - Security
The Register - Security
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog
P
Palo Alto Networks Blog
爱范儿
爱范儿
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
C
Cisco Blogs
Spread Privacy
Spread Privacy
F
Full Disclosure
博客园 - 聂微东
T
The Blog of Author Tim Ferriss

Rat's Blog - Telegram

一个基于Go的Telegram RSS Bot机器人,支持应用内阅读预览 - Rat's Blog 使用EH Forwarder Bot实现Telegram同时收发多个微信/QQ消息 - Rat's Blog Telegram MTProxy一键安装脚本 - Rat's Blog
TeleShellBot:通过Telegram机器人远程执行shell命令 - Rat's Blog
博主: Rat's · 2017-10-01 · via Rat's Blog - Telegram

简介

TeleShellBot是我脑洞大开的时候写的一个简单的telegram机器人,可以帮你远程执行shell命令,从而让你可以在手机上操作你的服务器。

截图

请输入图片描述

教程

Github地址:https://github.com/marknote/TeleShellBot

1、安装

git clone https://github.com/marknote/TeleShellBot.git
cd TeleShellBot
npm install

gitnpm安装请参考:Debian/Ubuntu/CentOS安装最新版的Node.js和NPM教程Debian/Ubuntu/CentOS安装Git教程

2、配置
根据Telegram instructions去创建一个机器人的UserID,然后将UserIDBOT token放到config.js里面。

module.exports = {
    config:function(){
        return (
            {
                adminUsers:[ADMIN_ID], //admin users' telegram id, should be numbers
                botToken: 'YOUR_BOT_TOEKN', // bot token

            }
        );
    }
};

3、运行

npm start

or

node index.js

原文地址:https://www.v2ex.com/t/394208


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/327/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。