dsh-redteam-model
SeaOf0
基于dsh web实现的多种模式,目的是服务于redteam进行授权的安全研究,覆盖渗透测试、红队评估、代码审计等范围领域,请勿用于非法行为。(允许二开,赋予模块各位自己的业务逻辑,方法论只有自己熟练的才好用,好的方法论=好的生态)
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:huanlin-labs/dsh-vpn-guard
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A provider-agnostic egress and AI-risk monitor for DeepSeek Harness (DSH).
It answers three questions without locking you into a particular VPN vendor:
Privacy first: the plugin does not read subscription links, credentials, cookies or browser profiles. It stores only compact probe results in
~/.dsh/vpn-guard/.
| Capability | Generic core | Clash / Mihomo adapter |
|---|---|---|
| Exit IP / country / ASN / latency | ✅ direct, HTTP proxy or TUN | ✅ |
| Controller reachability | — | ✅ HTTP controller (host:port) or Clash Verge named pipe (auto) |
| Node list / selector groups | — | ✅ if the controller exposes /proxies |
| Node switching | — | ✅ allow-list + two-step confirm |
| Subscription traffic / expiry | — | ✅ when info nodes are exposed |
| Process / service counters | optional, user-defined names | optional |
This means WireGuard, OpenVPN, Tailscale, sing-box, v2rayN, Clash Verge, Mihomo, SDKDNS and “system proxy only” setups can all use the same page. Vendor-specific features simply stay hidden when the adapter cannot provide them.
webServer service.ipjudge and ipcheck binaries. Without them, the page still works using generic egress checks; AI per-service rows fall back to — / 证据不足.null (shown as — / 证据不足), never converted into a low score.~/.dsh/vpn-guard/last-full.json, so a restart does not blank the page.See docs/SCORING.md for the exact rules.
plugin_manager install_bundle target="<absolute path to this directory>"
Restart DSH once after the first install. A VPN 守卫 / VPN Guard entry appears in the sidebar.
Open 设置 / Settings:
| Key | Meaning | Default |
|---|---|---|
provider |
auto, clash, system, none |
auto |
proxyMode |
auto, http, tun, none |
auto |
controller |
Clash/Mihomo controller: host:port, auto (auto-detect Clash Verge), or empty = no controller |
empty |
proxyHost / proxyPort |
local HTTP proxy for egress probes | 127.0.0.1:7890 |
selectorGroup |
group shown as “current node”; empty = first group / GLOBAL | empty |
allowedSwitchGroups |
comma-separated groups the switch button may touch; empty = switching disabled | empty |
processNames |
comma-separated process names to count, e.g. clash.exe, mihomo.exe |
empty |
serviceName |
Windows service name to query | empty |
ipjudgePath / ipcheckPath |
optional enrichment tools | empty |
nodesCsvPath / keyNodesPath |
optional node-health / reference-score files | empty |
Everything except the egress probe is optional. Missing adapters produce a neutral “not configured” state, never a fake zero or a red alert.
Clash Verge / Mihomo
Clash Verge Rev usually exposes its controller on a Windows named pipe (\\.\pipe\verge-mihomo-...) and leaves external-controller disabled. The plugin detects the running verge-mihomo.exe, reads its pipe and mixed-port, and uses them automatically. In the settings page click 检测 Clash Verge (Detect Clash Verge) to fill controller: "auto", proxyPort and process names; no Clash Verge setting needs to be changed.
{
"provider": "clash",
"proxyMode": "http",
"controller": "auto",
"proxyPort": 7900,
"selectorGroup": "节点选择",
"allowedSwitchGroups": ["节点选择"]
}
An explicit HTTP controller such as 127.0.0.1:9097 still works for other Clash/Mihomo builds.
The plugin page also includes a Clash subpage. It reads the live controller and shows:
Groups in allowedSwitchGroups can be switched from this page; everything else is read-only. The page refreshes every 15 seconds while open. It never edits Clash YAML or subscription files.
GET /__dsh-vpn-guard/clash returns the same aggregation for scripts or diagnostics.
WireGuard / OpenVPN / Tailscale (TUN, no local HTTP port)
{
"provider": "system",
"proxyMode": "tun",
"controller": "",
"allowedSwitchGroups": []
}
System proxy only
{
"provider": "system",
"proxyMode": "http",
"proxyPort": 7890
}
PUT /proxies/<group> on a controller, restricted to allowedSwitchGroups, with a two-step token and an explicit confirmation dialog.index.js Host half: HTTP routes + timers
lib/probe.js Generic egress, Clash controller, platform probes, optional tools
lib/score.js Four-dimension scoring
lib/nodes.js Optional node list / CSV / reference merging
lib/store.js history.jsonl + config.json
client.js Client half: sidebar + tabbed page
cordis.patch.yml Bundle patch
docs/DETAIL.md Longer design notes
node --check index.js
node --check client.js
node --check lib/probe.js
node --check lib/score.js
node --check lib/nodes.js
node --check lib/store.js
MIT — see LICENSE.
这是一个不绑定任何 VPN 厂商的 DSH 插件:只要能测到出口 IP(直连、系统代理或 TUN 均可),页面就能工作;Clash/Mihomo 控制器、节点列表、流量信息、进程/服务检测都是可选增强。SDKDNS 只是可配置的一种用法,不是核心前提。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: security。