mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 05:56:46 +08:00
refactor: 统一插件分类系统,修复FindNet执行问题
- 修复FindNet插件分类从information改为service,解决不在服务扫描阶段执行的问题 - 统一所有插件分类为标准的三种类型:service、web、local - 将vulnerability类型插件(smbghost、ms17010)重分类为service - 将information类型插件(netbios、findnet)重分类为service - 确保所有网络服务端口扫描插件都在服务扫描阶段正确执行 - 保持插件功能不变,仅调整分类以符合新架构要求 测试验证:FindNet现已能正确在135端口扫描时显示网络接口信息
This commit is contained in:
parent
99b0481616
commit
b2b2c4a215
@ -14,7 +14,7 @@ func NewFindNetPlugin() base.Plugin {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "Windows网络接口发现和主机名解析 (通过RPC)",
|
||||
Category: "information",
|
||||
Category: "service",
|
||||
Ports: []int{135}, // RPC端口
|
||||
Protocols: []string{"tcp"},
|
||||
Tags: []string{"findnet", "rpc", "information-gathering", "windows", "network-discovery"},
|
||||
@ -40,7 +40,7 @@ func init() {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "Windows网络接口发现和主机名解析 (通过RPC)",
|
||||
Category: "information",
|
||||
Category: "service",
|
||||
Ports: []int{135},
|
||||
Protocols: []string{"tcp"},
|
||||
Tags: []string{"findnet", "rpc", "information-gathering", "windows", "network-discovery"},
|
||||
|
@ -14,7 +14,7 @@ func NewMS17010Plugin() base.Plugin {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "MS17010 SMB远程代码执行漏洞检测 (EternalBlue)",
|
||||
Category: "vulnerability",
|
||||
Category: "service",
|
||||
Ports: []int{445}, // SMB端口
|
||||
Protocols: []string{"tcp"},
|
||||
Tags: []string{"smb", "ms17010", "eternalblue", "vulnerability"},
|
||||
@ -40,7 +40,7 @@ func init() {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "MS17010 SMB远程代码执行漏洞检测 (EternalBlue)",
|
||||
Category: "vulnerability",
|
||||
Category: "service",
|
||||
Ports: []int{445},
|
||||
Protocols: []string{"tcp"},
|
||||
Tags: []string{"smb", "ms17010", "eternalblue", "vulnerability"},
|
||||
|
@ -14,7 +14,7 @@ func NewNetBiosPlugin() base.Plugin {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "NetBIOS信息收集和主机名解析",
|
||||
Category: "information",
|
||||
Category: "service",
|
||||
Ports: []int{139, 445}, // NetBIOS端口
|
||||
Protocols: []string{"tcp", "udp"},
|
||||
Tags: []string{"netbios", "information-gathering", "hostname", "smb"},
|
||||
@ -40,7 +40,7 @@ func init() {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "NetBIOS信息收集和主机名解析",
|
||||
Category: "information",
|
||||
Category: "service",
|
||||
Ports: []int{139, 445},
|
||||
Protocols: []string{"tcp", "udp"},
|
||||
Tags: []string{"netbios", "information-gathering", "hostname", "smb"},
|
||||
|
@ -14,7 +14,7 @@ func NewSmbGhostPlugin() base.Plugin {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "SMBGhost (CVE-2020-0796) 远程代码执行漏洞检测",
|
||||
Category: "vulnerability",
|
||||
Category: "service",
|
||||
Ports: []int{445}, // SMB端口
|
||||
Protocols: []string{"tcp"},
|
||||
Tags: []string{"smb", "smbghost", "cve-2020-0796", "vulnerability"},
|
||||
@ -40,7 +40,7 @@ func init() {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "SMBGhost (CVE-2020-0796) 远程代码执行漏洞检测",
|
||||
Category: "vulnerability",
|
||||
Category: "service",
|
||||
Ports: []int{445},
|
||||
Protocols: []string{"tcp"},
|
||||
Tags: []string{"smb", "smbghost", "cve-2020-0796", "vulnerability"},
|
||||
|
@ -14,7 +14,7 @@ func NewMS17010Plugin() base.Plugin {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "MS17010 SMB远程代码执行漏洞检测 (EternalBlue)",
|
||||
Category: "vulnerability",
|
||||
Category: "service",
|
||||
Ports: []int{445}, // SMB端口
|
||||
Protocols: []string{"tcp"},
|
||||
Tags: []string{"smb", "ms17010", "eternalblue", "vulnerability"},
|
||||
@ -40,7 +40,7 @@ func init() {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "MS17010 SMB远程代码执行漏洞检测 (EternalBlue)",
|
||||
Category: "vulnerability",
|
||||
Category: "service",
|
||||
Ports: []int{445},
|
||||
Protocols: []string{"tcp"},
|
||||
Tags: []string{"smb", "ms17010", "eternalblue", "vulnerability"},
|
||||
|
@ -14,7 +14,7 @@ func NewNetBiosPlugin() base.Plugin {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "NetBIOS信息收集和主机名解析",
|
||||
Category: "information",
|
||||
Category: "service",
|
||||
Ports: []int{139, 445}, // NetBIOS端口
|
||||
Protocols: []string{"tcp", "udp"},
|
||||
Tags: []string{"netbios", "information-gathering", "hostname", "smb"},
|
||||
@ -40,7 +40,7 @@ func init() {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "NetBIOS信息收集和主机名解析",
|
||||
Category: "information",
|
||||
Category: "service",
|
||||
Ports: []int{139, 445},
|
||||
Protocols: []string{"tcp", "udp"},
|
||||
Tags: []string{"netbios", "information-gathering", "hostname", "smb"},
|
||||
|
@ -14,7 +14,7 @@ func NewSmbGhostPlugin() base.Plugin {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "SMBGhost (CVE-2020-0796) 远程代码执行漏洞检测",
|
||||
Category: "vulnerability",
|
||||
Category: "service",
|
||||
Ports: []int{445}, // SMB端口
|
||||
Protocols: []string{"tcp"},
|
||||
Tags: []string{"smb", "smbghost", "cve-2020-0796", "vulnerability"},
|
||||
@ -40,7 +40,7 @@ func init() {
|
||||
Version: "1.0.0",
|
||||
Author: "fscan-team",
|
||||
Description: "SMBGhost (CVE-2020-0796) 远程代码执行漏洞检测",
|
||||
Category: "vulnerability",
|
||||
Category: "service",
|
||||
Ports: []int{445},
|
||||
Protocols: []string{"tcp"},
|
||||
Tags: []string{"smb", "smbghost", "cve-2020-0796", "vulnerability"},
|
||||
|
Loading…
Reference in New Issue
Block a user