GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — webstrike/WebStrike_server/README.md at main · ssrsec/webstrike

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
106 lines (90 loc) · 4.92 KB
/

README.md

Copy path

File metadata and controls

106 lines (90 loc) · 4.92 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

WebStrike

目录结构

WebStrike/
├── agent/                          # 被控端 Chrome MV3 扩展
│   ├── background.js               # 注册/心跳/任务执行/WS 通道/页内代理
│   ├── content.js                  # 剪贴板劫持与替换、键盘记录
│   ├── manifest.json
│   └── packed/                     # 压缩后供控制台生成器内嵌的版本
│
├── operator-extension/             # 操作员侧 Chrome 扩展
│   ├── background.js               # 接收会话包 → 写 Cookie/请求头/Storage → 打开目标页
│   └── manifest.json
│
├── backend/                        # 控制台 + Agent 通道(FastAPI / Gunicorn)
│   ├── main.py                     # 路由挂载、生命周期、CORS
│   ├── core/                       # 数据库连接、配置读取、JWT/密码哈希、JWT 密钥装载
│   ├── routers/                    # Agent 注册心跳回传、管理端 CRUD、WS 实时控制、
│   │                               # Cookie 回放、MITM 会话、扩展模板、审计日志
│   ├── services/                   # 任务编排、代理节点管理、传输加密、噪声规则、
│   │                               # GeoIP、Cookie 回放、审计
│   ├── deps/                       # JWT 鉴权中间件
│   ├── models/                     # MongoDB 文档结构 + API 请求/响应 Schema
│   ├── tools/                      # 容器内 CLI:重置密码、恢复站点配置
│   └── data/                       # GeoIP 离线库 + CRX 签名私钥
│
├── frontend/                       # 控制台前端(Vue 3 + Vite + TypeScript)
│   └── src/
│       ├── views/                  # 仪表盘、Agent 列表/详情、任务派发、生成器、
│       │                           # 权限接管、实时控制、代理节点、系统设置、审计日志
│       ├── api/                    # 后端 API 封装
│       ├── store/                  # Pinia 状态管理(认证/站点/Agent/任务)
│       └── utils/                  # 加解密、时区、扩展通信等工具函数
│
├── operator_mitm_proxy/            # 操作员本地 MITM 代理(Python 包)
│   ├── mitm_server.py              # CONNECT 隧道 + HTTP 转发主循环
│   ├── bridge.py                   # WebSocket 连接池,同步桥接到 Agent fetch
│   ├── ca_certs.py                 # 按域名动态签发 TLS 叶子证书
│   ├── noise_filter.py             # 过滤遥测/分析等无关请求(规则外置 JSON)
│   ├── routing_policy.py           # CDN/静态资源本机直出,减少 Agent 负载
│   ├── adaptive_filter.py          # 根据 Agent 响应自动抑制持续失败的 origin
│   └── direct_http.py              # 本机直连 HTTP(S) 客户端
│
├── deploy/                         # 生产 Docker 编排
│   ├── docker-compose.prod.yml     # nginx(HTTPS 反代)+ server + mongo
│   └── gunicorn.conf.py            # Worker 数/超时/端口集中配置
│
├── scripts/
│   ├── export_release.sh           # 构建镜像并导出为离线部署目录
│   ├── pack-agent.mjs              # Agent 源码 esbuild 压缩
│   └── clean-artifacts.sh          # 清理 __pycache__ 等构建缓存
│
├── install.sh                      # 一键部署(构建 + 启动)
└── uninstall.sh                    # 一键停止 + 删容器/卷/镜像

运维命令

# 重置 admin 密码(随机生成)
docker exec -it webstrike_server python -m tools.server_cli reset-admin

# 重置 admin 密码为指定值
docker exec -it webstrike_server python -m tools.server_cli reset-admin "NewPassword"

# 重置站点配置(登录路径/伪装页等恢复默认)
docker exec -it webstrike_server python -m tools.server_cli reset-site-config

开发部署

chmod +x install.sh
./install.sh                                          # 默认端口
./install.sh --console-port 8443 --agent-port 9000    # 自定义端口

前置:Docker + Compose v2、backend/data/geoip/GeoLite2-City.mmdb。

离线部署包导出

构建镜像并导出为可离线部署的目录(镜像包 + compose + 管理脚本):

chmod +x scripts/export_release.sh
./scripts/export_release.sh                                        # 默认端口
./scripts/export_release.sh --console-port 8443 --agent-port 9000  # 自定义端口

产物在 release/ 目录,复制到目标环境加载启动:

release/start.sh          # 一键启动(首次自动加载镜像并显示初始账号密码)
release/stop.sh           # 停止
release/uninstall.sh      # 彻底卸载
release/reset-admin.sh    # 重置管理员密码

卸载

chmod +x uninstall.sh
./uninstall.sh
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.