Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gh0stkey/Command2API
Command2API - 万物皆可API
https://github.com/gh0stkey/Command2API
api python
Last synced: 21 days ago
JSON representation
Command2API - 万物皆可API
- Host: GitHub
- URL: https://github.com/gh0stkey/Command2API
- Owner: gh0stkey
- Created: 2021-12-12T12:37:54.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-10T02:45:48.000Z (almost 3 years ago)
- Last Synced: 2024-07-11T03:43:43.625Z (5 months ago)
- Topics: api, python
- Language: Python
- Homepage:
- Size: 4.69 MB
- Stars: 253
- Watchers: 7
- Forks: 46
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - gh0stkey/Command2API - Command2API - 万物皆可API (Python)
README
# Command2API
**作者**:key@元亨实验室
**简介**:这是一个可以实时获取执行命令结果的脚本,脚本原理就是一个线程开启Web服务,一个线程执行命令,通过全局变量与Web服务共享执行命令的结果。
## 使用方法
执行命令:
```shell
python Command2Api.py "执行的命令" Web运行的端口
python Command2Api_Py3.py "执行的命令" Web运行的端口 // Python3版本来自noobyan
```接着在命令中会输出对应的URL,访问即可获取信息:
![](images/0.png)