Skip to content

Commit 5a99b1b

Browse files
author
y-crew server
committed
init project
0 parents  commit 5a99b1b

28 files changed

+6716
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# MQTT-SHELL
2+
本项目解决的问题:在浏览器里远程执行 Shell 命令,并查看执行结果。
3+
4+
相比于VPN,该项目代码可集成到其他 MQTT 客户端逻辑上,本项目的价值在于参考实现。
5+
6+
## 实现原理
7+
8+
在宿主上运行 `mshell` 命令行可执行程序,通过 MQTT 连接 MQTT Server,并订阅 command 主题消息。
9+
10+
浏览器通过 MQTT Websocket 连接 MQTT,获取订阅消息并展示。
11+
12+
13+
### 应用场景举例
14+
1. 执行 `sshx`, 暴露 shell 给远端。
15+
2. 执行 `free -h`, 查看当前服务状况。

agent/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
.idea

agent/.rustfmt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
imports_granularity = "module"

0 commit comments

Comments
 (0)