AlbertiJ/Plantillas-de-bots
GitHub: AlbertiJ/Plantillas-de-bots
一套基于 FastAPI 的 Telegram 机器人模板管理系统,面向 CTF 和 OSINT 场景提供模板化创建、进程监控和后台管理功能。
Stars: 0 | Forks: 0
# Plantillas-de-bots (Python 版)
原始项目 `Plantillas-de-bots` (Next.js + TypeScript) 的纯 Python 重构版本。
**技术栈:** FastAPI + Jinja2 + 无 SQLite (使用 JSON 文件)。
**基于以下 commits:**
- `6cd96c7` — Bot Builder
- `01cefcf` — CTF OSINT + Librerías
- `233b2e8` — CTF Templates + Watchdog
- `b2c4265` — Status
- `6a89a62` — Login + Admin + .env tokens
**语言:** 仅西班牙语(已移除原有的双语系统)。
## 启动
```
python -m venv .venv
source .venv/bin/activate # Linux/Mac
# .venv\Scripts\activate # Windows
pip install -r requirements.txt
cp .env.example .env
uvicorn main:app --reload
```
## 首次启动
1. 服务器检测到没有凭据
2. 生成一个随机的 admin 密钥并显示在控制台
3. 你访问 `http://localhost:8000/login`,输入该密钥
4. 系统会强制你在进入面板之前修改它
5. 完成 —— 你现在已经进入 `/admin`
## 密钥重置(如果你忘记了)
1. `POST /api/auth/reset`(或点击 login 上的按钮)
2. 服务器将删除整个 `data/credentials/` 目录
3. 生成一个新的随机密钥
4. 将其显示在控制台并在 response 中返回
## 结构
```
main.py # FastAPI app + lifespan + first-run
app/
auth.py # login / change / reset (con fix del bug)
admin.py # gestión de .env tokens
launcher.py # SSE subprocess streaming
activity.py # historial
builder.py # CRUD bots
ctf_osint.py # panel OSINT
libraries.py # gestión librerías
ctf_templates.py # templates CTF
watchdog.py # monitoreo
status.py # estado del sistema
templates/ # Jinja2
static/ # CSS
data/ # JSON files (ctf_templates, osint_bots, libraries, bots)
tests/ # pytest
```
标签:AV绕过, ESC4, FastAPI, OSINT, Python, Web管理后台, 安全规则引擎, 无后门, 机器人模板, 网络调试, 自动化