fscan/Common/Ports.go
ZacharyZcR b706fb46bb refactor: 统一端口组定义并支持多种端口组扫描
- 新增多个预定义端口组常量到base/Constants.go
- 实现-p web/main/db/service/common/all参数支持
- 删除重复的DefaultPorts常量和database端口组
- 合并GetPortGroups和GetTargetPortGroups函数避免重复
- 统一所有端口组定义到统一位置便于维护
2025-08-12 15:56:09 +08:00

20 lines
590 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 common
import "github.com/shadow1ng/fscan/common/base"
/*
Ports.go - 端口常量(向后兼容层)
此文件保持向后兼容实际常量定义已迁移到Core/Constants.go
*/
// 向后兼容的端口常量 - 引用base包中的定义
var (
WebPorts = base.WebPorts // Web服务端口组
MainPorts = base.MainPorts // 主要服务端口组
DbPorts = base.DbPorts // 数据库端口组
ServicePorts = base.ServicePorts // 服务端口组
CommonPorts = base.CommonPorts // 常用端口组
AllPorts = base.AllPorts // 全部端口
)