fscan/plugins/services/init.go
ZacharyZcR e082e2bb59 refactor: 重组插件目录结构,提升管理直观性
将所有服务插件移动到plugins/services/目录下,使目录结构更加清晰直观:
• 创建plugins/services/目录统一管理服务扫描插件
• 添加init.go提供类型别名和函数导出
• 更新main.go导入路径
• 所有20个服务插件功能验证正常

新的目录结构更便于插件管理和维护。
2025-08-26 00:02:13 +08:00

23 lines
616 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package services
// 从父目录导入插件基础类型
import (
"github.com/shadow1ng/fscan/plugins"
)
// 类型别名让services包中的插件可以直接使用这些类型
type (
Plugin = plugins.Plugin
Exploiter = plugins.Exploiter
ScanResult = plugins.ScanResult
ExploitResult = plugins.ExploitResult
Credential = plugins.Credential
)
// 导出函数让services包中的插件可以调用
var (
RegisterPlugin = plugins.RegisterPlugin
GetPlugin = plugins.GetPlugin
GetAllPlugins = plugins.GetAllPlugins
GenerateCredentials = plugins.GenerateCredentials
)