feat: v2.1.0 核心重构与功能增强

## 架构重构
- 全局变量消除,迁移至 Config/State 对象
- SMB 插件融合(smb/smb2/smbghost/smbinfo)
- 服务探测重构,实现 Nmap 风格 fallback 机制
- 输出系统重构,TXT 实时刷盘 + 双写机制
- i18n 框架升级至 go-i18n

## 性能优化
- 正则表达式预编译
- 内存优化 map[string]struct{}
- 并发指纹匹配
- SOCKS5 连接复用
- 滑动窗口调度 + 自适应线程池

## 新功能
- Web 管理界面
- 多格式 POC 适配(xray/afrog)
- 增强指纹库(3139条)
- Favicon hash 指纹识别
- 插件选择性编译(Build Tags)
- fscan-lab 靶场环境
- 默认端口扩展(62→133)

## 构建系统
- 添加 no_local tag 支持排除本地插件
- 多版本构建:fscan/fscan-nolocal/fscan-web
- CI 添加 snapshot 模式支持仅测试构建

## Bug 修复
- 修复 120+ 个问题,包括 RDP panic、批量扫描漏报、
  JSON 输出格式、Redis 检测、Context 超时等

## 测试增强
- 单元测试覆盖率 74-100%
- 并发安全测试
- 集成测试(Web/端口/服务/SSH/ICMP)
This commit is contained in:
ZacharyZcR
2026-01-11 20:16:23 +08:00
parent 6b13b2e84f
commit 71b92d4408
948 changed files with 92335 additions and 24630 deletions
+45 -11
View File
@@ -1,6 +1,6 @@
name: 🐛 Bug 报告
description: 报告扫描异常、崩溃或错误行为
title: "[Bug] "
title: "[Bug] 简要描述问题"
labels: ["bug"]
body:
@@ -70,16 +70,50 @@ body:
description: 粘贴相关的错误信息或日志(请脱敏敏感信息)
render: shell
- type: textarea
id: environment
- type: dropdown
id: version
attributes:
label: 环境信息
description: 请提供运行环境信息
value: |
- fscan 版本: [如 1.8.4]
- 操作系统: [如 Windows 11 / Ubuntu 22.04 / macOS 14]
- 架构: [如 amd64 / arm64]
- Go 版本 (如自编译): [如 go1.20.10]
label: fscan 版本
options:
- 2.1.0
- 2.0.1
- 2.0.0
- 1.8.4
- 其他/自编译
validations:
required: true
- type: dropdown
id: os
attributes:
label: 操作系统
options:
- Windows 11
- Windows 10
- Windows Server 2022
- Windows Server 2019
- Ubuntu 22.04
- Ubuntu 20.04
- CentOS 7
- CentOS 8/Stream
- Debian 11/12
- Kali Linux
- macOS 14 (Sonoma)
- macOS 13 (Ventura)
- 其他 Linux
- 其他
validations:
required: true
- type: dropdown
id: arch
attributes:
label: 系统架构
options:
- amd64 (x86_64)
- arm64 (aarch64)
- 386 (x86)
- arm
validations:
required: true
@@ -87,4 +121,4 @@ body:
id: additional
attributes:
label: 补充信息
description: 其他可能有助于排查问题的信息
description: 其他可能有助于排查问题的信息(如自编译请注明 Go 版本)
+34 -11
View File
@@ -1,6 +1,6 @@
name: 🎯 误报/漏报
description: 报告扫描结果不准确的问题
title: "[Accuracy] "
title: "[Accuracy] 服务名 - 误报/漏报描述"
labels: ["accuracy"]
body:
@@ -54,15 +54,33 @@ body:
validations:
required: true
- type: textarea
id: environment
- type: dropdown
id: target-os
attributes:
label: 目标环境
description: 描述目标的环境信息(请脱敏)
placeholder: |
- 目标系统: Windows Server 2019 / Ubuntu 22.04
- 服务版本: MySQL 8.0 / Redis 7.0
- 网络环境: 直连 / 通过代理 / VPN
label: 目标操作系统
options:
- Windows Server 2022
- Windows Server 2019
- Windows Server 2016
- Windows 10/11
- Ubuntu
- CentOS/RHEL
- Debian
- 其他 Linux
- 网络设备
- 未知
validations:
required: true
- type: dropdown
id: network
attributes:
label: 网络环境
options:
- 直连
- 通过代理
- VPN
- 跨网段
validations:
required: true
@@ -76,11 +94,16 @@ body:
validations:
required: true
- type: input
- type: dropdown
id: version
attributes:
label: fscan 版本
placeholder: "如: 1.8.4"
options:
- 2.1.0
- 2.0.1
- 2.0.0
- 1.8.4
- 其他/自编译
validations:
required: true
+1 -1
View File
@@ -1,6 +1,6 @@
name: ✨ 功能请求
description: 提议新功能或改进现有功能
title: "[Feature] "
title: "[Feature] 一句话描述功能"
labels: ["enhancement"]
body:
+3 -1
View File
@@ -1,6 +1,6 @@
name: 🔌 新插件/协议支持
description: 请求支持新的服务、协议或漏洞检测
title: "[Plugin] "
title: "[Plugin] 协议/服务名称"
labels: ["plugin", "enhancement"]
body:
@@ -76,6 +76,8 @@ body:
- 较为常见 (经常遇到)
- 偶尔遇到
- 较少见但重要
validations:
required: true
- type: checkboxes
id: contribution