Skip to content

修复凭据追加和模块选择异常 - #611

Merged
ZacharyZcR merged 1 commit into
devfrom
fix/credential-append-plugin-selection
Oct 1, 2026
Merged

ZacharyZcR merged 1 commit into
devfrom
fix/credential-append-plugin-selection

Conversation

@ZacharyZcR

Copy link
Copy Markdown
Collaborator

仅传 -pwda/-usera 时,配置构建会覆盖内置字典;-m netbios 未指定端口时仍扫描通用端口,并在无关端口反复报错。

  • 追加凭据保留各服务的默认用户名和默认密码,并去重;显式指定 -user/-pwd 或字典文件时,继续以指定字典为基础追加。
  • CLI 使用 -m 选择有固定端口的模块且未提供 -p/-pf 时,自动使用这些模块默认端口的并集。-m netbios 因此使用 137,139;显式 -p 仍支持非标准端口,Web 模块保留通用端口范围。
  • NetBIOS 跳过混合模块扫描中的无关端口。
  • 新增 -list-plugins,列出当前构建可用的模块、类型、默认端口和调用方式后退出;同步中英文帮助与 README。

验证:

  • 新增回归覆盖默认字典保留、去重、命令行及文件覆盖语义、模块端口选择、显式端口保留、模块列表直接退出和 NetBIOS 无关端口跳过。
  • 按现有 CI 范围运行 go test -vet=off -race -timeout=3m,排除第三方 libs/grdp,全部通过。
  • Linux/amd64 CLI、plugin_selective,plugin_netbios 精简构建和 web 构建均通过。
  • golangci-lint run --timeout=5m --new-from-rev=origin/dev 与 git diff --check 通过。
  • 未对实际目标执行扫描验收。

Fixes #609
Fixes #610

@ZacharyZcR
ZacharyZcR merged commit 61da31e into dev Oct 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant