https://github.com/leeyangee/python_webshell
python简单webshell,用于蚁剑远程管理
https://github.com/leeyangee/python_webshell
Last synced: about 2 months ago
JSON representation
python简单webshell,用于蚁剑远程管理
- Host: GitHub
- URL: https://github.com/leeyangee/python_webshell
- Owner: Leeyangee
- Created: 2024-06-09T01:45:26.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-07-14T06:56:33.000Z (11 months ago)
- Last Synced: 2025-03-24T10:21:19.674Z (3 months ago)
- Language: Python
- Homepage:
- Size: 120 KB
- Stars: 22
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## [](#header-31)一个简单的python webshell
众所周知蚁剑是一款很好的文件管理工具和部署工具,黑客可以直接使用蚁剑来连接webshell,那为什么不能用蚁剑来管理自己的服务器呢?
使用方法:只需要下载 webshell.py 并使用 python3 运行即可,自动根据机器生成加密的连接路径、连接参数,然后用蚁剑的 CMDLINUX 类型连接,并选择忽略HTTPS证书,非常方便快捷
安装
```
git clone https://github.com/Leeyangee/python_webshell
```
运行
```
python3 webshell.py
```
使用蚁剑连接

`*一定要忽略HTTPS证书`
第一次生成的连接路径、连接参数保存在 config/webshell.cfg 文件中,若需要更改请删除该文件,下次使用自动生成新的
--------
1.2: 更强大的安全性: 在连接 URL 中添加了逻辑校验参数 passwa ,以防止今后可能会出现的 FastAPI 路径、参数泄露漏洞.
1.1: 更全面的配置项,舍弃 os.popen 添加了 stderr 输出
1.0: 修改了错误