dsh-redteam-model
SeaOf0
基于dsh web实现的多种模式,目的是服务于redteam进行授权的安全研究,覆盖渗透测试、红队评估、代码审计等范围领域,请勿用于非法行为。(允许二开,赋予模块各位自己的业务逻辑,方法论只有自己熟练的才好用,好的方法论=好的生态)
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:mdalboni/dsh-static-token
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A DeepSeek Harness (DSH) plugin to configure a persistent, static launch token for the Web GUI, preventing session expiration and authentication issues behind reverse proxies or across remote devices.
By default, DSH generates an ephemeral, in-memory launch token every time the service starts. On headless, reverse-proxied, or containerized deployments (such as Kubernetes with Traefik/Authentik), restarting the process invalidates the current token. Accessing the dashboard from a secondary device (e.g., a phone) requires retrieving a new token from the host logs.
dsh-static-token hooks into the connection service and overrides the generated launch token with a fixed token defined via an environment variable or profile configuration.
DSH_WEB_TOKEN from the process environment first, with fallback to profile plugin configuration.openssl rand -hex 24).trustedHosts in your DSH configuration (e.g., dsh.lab.example.com). dsh-static-token only configures authentication; routing and host validation remain DSH host settings.ctx.connection.browserAuth.launchToken. Major upstream DSH updates that refactor connection internals might require corresponding plugin updates.dsh plugin --profile web add dsh-static-token
git clone https://github.com/mdalboni/dsh-static-token.git
dsh plugin --profile web add link:./dsh-static-token
You can supply your static token in one of two ways:
Export DSH_WEB_TOKEN in your environment or service definition:
export DSH_WEB_TOKEN="your-custom-secure-token-here"
In a systemd service (e.g., /etc/systemd/system/dsh.service):
[Service]
Environment="DSH_WEB_TOKEN=your-custom-secure-token-here"
Configure the token directly in your DSH profile configuration:
# cordis.patch.yml or profile configuration
dsh-static-token:
token: "your-custom-secure-token-here"
Once configured and restarted, authenticate any new device or browser by visiting:
https://your-dsh-domain.com/?token=your-custom-secure-token-here
DSH will set its standard 30-day signed session cookie and redirect to the clean URL.
Run the included test suite using Node.js:
node test.js
MIT © Maxwell Dalboni
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: authentication。