mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 12:50:23 +08:00
release: 1.1.84,尾部锚点与子代理审批接管,红队模式中文化,#194/#188
- 接线 lib/anchor.js:锚点物理追加到 system prompt sections 末尾, identity.js 支持 anchorText(对象/字符串两种入参),已有同名段先滤再追加; 锚点改为跟随操作者语言,删除写死的英文开头句(红队回答变英文的根因) - 接线 lib/subagent-control.js:子会话 approval/policy=never 改回 ask, 并在 approval/request 瀑布放行;anchorMode/subagentControl 提供回滚开关 - index.js:真实 anchorApplied / injectTail 判定、审批策略探针、iso 分支 注册锚点、applyHostHooks 注册锚点与子代理接管并统一释放 - office 技能自愈:core/desktop 增加 healOfficeSkillsRuntimeOnDisk,桌面端触发 - 红队模式中文化:preset 文案、角色名、五阶段、25 项计分规则与 POC 分类、 技能修复说明、环境适配提示、面板报错、成果报告与复现报告 - #194:hung-operator 改按内容变更缓存,加风暴/慢调用熔断;WeakMap 去重 同次 assemble 的重复改写;新增 #91 记录宿主信号退出的持久化日志 - #188(rc.4 专属部分):新增 #89 沙箱策略去品牌、#90 skill-badge 中文描述, 扩展 #32/#53 的 rc.3 变体与 marker,均 optional - 新增锚点接线与红队文案测试,81/81 通过
This commit is contained in:
1 parent
ec4c8b889f
commit
5d0ebdae81
19 files changed
+1521
-847
No files matched your search
+15
-15
@@ -409,27 +409,27 @@ CREATE INDEX IF NOT EXISTS ix_poc_kind ON poc(kind, verified);
|
||||
* 面板按它分组,用户才能"一类一类看"而不是几百条平铺。
|
||||
*/
|
||||
const POC_CATEGORIES = [
|
||||
{ code: 'rce', name: "Remote command execution", hint: "Framework/middleware/component RCE, expression injection, template injection" },
|
||||
{ code: 'deserialization', name: "Deserialization", hint: "Java/PHP/.NET deserialization chains, fastjson/jackson, etc." },
|
||||
{ code: 'file-upload', name: "File upload getshell", hint: "Upload bypass, parsing flaws, second-render, race conditions" },
|
||||
{ code: 'sqli', name: "SQL injection", hint: "Injection-point validation, data dumping, file writes, privilege escalation" },
|
||||
{ code: 'unauthorized', name: "Unauthorized access", hint: "Unauthenticated interfaces/services (Redis, Docker, Actuator, Swagger calls)" },
|
||||
{ code: 'auth-bypass', name: "Auth bypass / broken access control", hint: "Login bypass, JWT flaws, unauthorized read/write, logic flaws" },
|
||||
{ code: 'weak-password', name: "Weak passwords / password brute force", hint: "Weak admin passwords, weak database passwords, default passwords" },
|
||||
{ code: 'ssrf', name: 'SSRF', hint: "Server-side request forgery, cloud metadata, internal-network probing pivot" },
|
||||
{ code: 'xxe', name: 'XXE', hint: "XML external entity reads and SSRF" },
|
||||
{ code: 'path-traversal', name: "Path traversal / arbitrary file read", hint: "Path traversal, arbitrary file read, source/config file read" },
|
||||
{ code: 'info-leak', name: "Information disclosure", hint: "Config/credential/source/backup leaks (the kind that can be upgraded to a score)" },
|
||||
{ code: 'privesc', name: "Privilege escalation / lateral movement", hint: "Local privilege escalation, credential reuse, Pass-the-Hash, lateral tools" },
|
||||
{ code: 'tunnel', name: "Tunnel / proxy", hint: "suo5, frp, chisel, Neo-ReGeorg, internal proxies" },
|
||||
{ code: 'other', name: "Other", hint: "Does not fit any category above (describe the purpose)" },
|
||||
{ code: 'rce', name: '远程命令执行', hint: '框架/中间件/组件 RCE、表达式注入、模板注入' },
|
||||
{ code: 'deserialization', name: '反序列化', hint: 'Java/PHP/.NET 反序列化链、fastjson/jackson 等' },
|
||||
{ code: 'file-upload', name: '文件上传 getshell', hint: '上传绕过、解析漏洞、二次渲染、竞争' },
|
||||
{ code: 'sqli', name: 'SQL 注入', hint: '注入点验证、拖库、写文件、提权' },
|
||||
{ code: 'unauthorized', name: '未授权访问', hint: '未鉴权接口/服务(Redis、Docker、Actuator、Swagger 调用)' },
|
||||
{ code: 'auth-bypass', name: '认证绕过 / 越权', hint: '登录绕过、JWT 缺陷、越权读写、逻辑缺陷' },
|
||||
{ code: 'weak-password', name: '弱口令 / 口令爆破', hint: '管理端弱口令、数据库弱口令、默认口令' },
|
||||
{ code: 'ssrf', name: 'SSRF', hint: '服务端请求伪造、云元数据、内网探测跳板' },
|
||||
{ code: 'xxe', name: 'XXE', hint: 'XML 外部实体读取与 SSRF' },
|
||||
{ code: 'path-traversal', name: '目录穿越 / 任意文件读取', hint: '路径穿越、任意文件读、源码/配置读取' },
|
||||
{ code: 'info-leak', name: '信息泄露', hint: '配置/凭据/源码/备份泄露(能升级为得分的那些)' },
|
||||
{ code: 'privesc', name: '提权 / 横向', hint: '本地提权、凭据复用、Pass-the-Hash、横向工具' },
|
||||
{ code: 'tunnel', name: '隧道 / 代理', hint: 'suo5、frp、chisel、Neo-ReGeorg、内网代理' },
|
||||
{ code: 'other', name: '其它', hint: '不属于上面任何一类(写清用途)' },
|
||||
]
|
||||
export { POC_CATEGORIES }
|
||||
|
||||
/** 归类 code → 中文名(未知值原样返回,允许用户自定义)。 */
|
||||
export function pocCategoryName(code) {
|
||||
const hit = POC_CATEGORIES.find((c) => c.code === String(code || ''))
|
||||
return hit ? hit.name : (code ? String(code) : "Uncategorized")
|
||||
return hit ? hit.name : (code ? String(code) : '未归类')
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user