mirror of
https://github.com/crazywhalecc/quick-shell.git
synced 2026-03-17 20:34:52 +08:00
update README.md
This commit is contained in:
parent
07cf9c4e09
commit
fb90140396
34
README.md
34
README.md
@ -2,10 +2,10 @@
|
||||
|
||||
一个通过 `curl`、管道、`bash` 实现的快速执行常用命令的工具,不在本地硬盘保存脚本。
|
||||
|
||||
比如想随时随地不安装使用 neofetch,直接执行以下一行命令:
|
||||
万能入口:
|
||||
|
||||
```bash
|
||||
curl -s http://shell.zhamao.xin/run/neofetch | bash
|
||||
bash <(curl -s http://shell.zhamao.xin/)
|
||||
```
|
||||
|
||||
## 用法
|
||||
@ -13,29 +13,29 @@ curl -s http://shell.zhamao.xin/run/neofetch | bash
|
||||
该项目由[炸毛框架](https://github.com/zhamao-robot/zhamao-framework)构建,所有数据均直接部署于炸毛所在的下载服务器上。
|
||||
|
||||
```bash
|
||||
# 根 URI 会返回一个帮助菜单,包含了所有可以快速执行的命令
|
||||
curl -s http://shell.zhamao.xin
|
||||
# 快速运行neofetch
|
||||
bash <(curl -s http://shell.zhamao.xin/neofetch)
|
||||
|
||||
# /run 节点可以使用管道执行一个命令,如果命令不存在,则返回一个 echo 语句,避免报错,但做到了命令不存在的提示功能
|
||||
curl -s http://shell.zhamao.xin/run/{name} | bash
|
||||
# 快速运行speedtest
|
||||
bash <(curl -s http://shell.zhamao.xin/speedtest)
|
||||
|
||||
# 也可以不使用管道,查看快速命令名称对应要执行的 shell 代码或查看本项目的元数据(如果你不放心命令的话)
|
||||
curl -s http://shell.zhamao.xin/run/neofetch
|
||||
curl -s http://shell.zhamao.xin/manifest
|
||||
```
|
||||
|
||||
此外,有些指令可能需要交互的命令行,在查看帮助菜单时会给出红色名称提示。如果需要使用交互式输入的命令,需要使用以下方式执行:
|
||||
|
||||
```bash
|
||||
bash -c "`curl -s http://shell.zhamao.xin/run/{name}`"
|
||||
# 使用CTF工具箱(比如快速开启frp内网穿透)
|
||||
# 服务端,监听0.0.0.0:7001,假设我的公网服务器IP是1.2.3.4
|
||||
bash <(curl -s http://shell.zhamao.xin/ctf/frps/bind_addr=0.0.0.0/bind_port=7001)
|
||||
# 客户端,穿透ssh 22端口到公网的50022端口
|
||||
bash <(curl -s http://shell.zhamao.xin/ctf/frpc/1.2.3.4:7001/127.0.0.1/22/50022)
|
||||
```
|
||||
|
||||
## 支持的快速命令
|
||||
|
||||
| 名称 | 说明 |
|
||||
| ---- | ---- |
|
||||
| `brew-update` | 执行 Homebrew 更新(测试通断用) |
|
||||
| `neofetch` | 执行 neofetch |
|
||||
| `neofetch` | 在线运行 neofetch |
|
||||
| `speedtest` | 在线运行 speedtest |
|
||||
| `ip` | 查看本机公网 IP |
|
||||
| `ctf/reverse_shell` | 使用 bash 反弹 shell,提供一个目标的 IP 和 nc 端口即可 |
|
||||
| `ctf/frps` | 快速启动一个 frps 内网穿透服务器 |
|
||||
| `ctf/frpc` | 快速使用 frpc 代理一个内网穿透一个端口,提供一个目标的 IP 和 TCP 端口即可 |
|
||||
| ... | 持续更新中 |
|
||||
|
||||
## 贡献
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user