Files
fscan/webscan/fingerprint/rules.go
T
ZacharyZcR 760c8ea502 v2.1.2 核心优化与多架构发布 (#561)
* 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)

* fix(ci): 移除 PR 对 Project 自动化的触发

* fix: Elasticsearch未授权检测优先于爆破 (#554)

* fix: 修复RDP爆破高误报率问题 (#555)

- 移除 screen.go 中错误的认证结果覆盖逻辑
- 启用 NLA 协议的 ErrorCode 字段检测
- 添加 PubKeyAuth 验证确保认证真正成功
- 修复 io.go 中错误被静默忽略的问题
- 修复 socket.go/io.go 中可能导致 panic 的代码
- 修复 screen.go 中文件句柄泄漏和 log.Panic

* fix: 修复-user/-pwd凭据参数不生效的问题

问题原因:
- Parse()解析凭据后更新globalConfig
- 但BuildConfigFromFlags()创建新Config时使用默认字典
- 导致解析的UserPassPairs等凭据信息被丢弃

修复内容:
1. initialize.go: 将Parse解析的凭据结果应用到新Config
2. credential.go: 单用户密码对时创建UserPassPairs
3. rdp.go: 单凭据测试时跳过指纹识别,减少连接次数

* feat: RDP使用NLA仅验证模式,避免挤掉已登录用户

- 添加ErrNLAAuthSuccess标志用于NLA验证成功信号
- tpkt层支持nlaAuthOnly模式,验证成功后不建立完整会话
- x224层正确传播NLA验证结果
- rdpCrack改用NlaAuth进行凭据验证

* fix: 修复进度条在Windows终端满屏重复输出的问题

- 添加终端宽度检测,动态调整进度条长度
- 使用空格覆盖清除旧内容,避免残留
- 简化进度条格式,确保不超过终端宽度

* feat: 优化日志颜色方案,区分漏洞和普通信息

- 新增 LogVuln 级别(红色),用于漏洞和重要发现
- 密码爆破成功、未授权访问、POC漏洞等改用红色显示
- 普通信息(扫描统计等)改为白色
- Web指纹保持绿色

* refactor: 精简化输出,移除冗余启动信息

- 移除showParseSummary开局配置输出
- 移除LogPluginInfo/LogPluginInfoWithPort插件信息输出
- 移除alive_scanner冗余统计输出
- 移除port_scan_start扫描开始提示
- 移除handleUDPPorts SNMP死代码
- 移除相关i18n条目

* chore: 版本号更新为2.1.1

* fix: 降级依赖版本以保持Go 1.20兼容性

* feat(ldap): 添加NTLM Hash认证支持 (#433)

* chore: 清理无用的 replace 指令

* fix(ping): 修复 TTL expired 导致主机误判为存活的问题

在 ExecCommandPing 中增加错误关键词检测,当 ping 输出包含
TTL expired、Destination unreachable 等错误信息时,不再将
目标主机标记为存活。

Fixes #454

* fix(proxy): 修复透明代理导致输出全端口的问题

在代理初始化时主动探测代理行为,通过连接 RFC 5737 保留的
测试地址来检测是否存在"全回显"问题。如果探测到代理不可靠,
则在端口扫描时跳过所有端口,避免误报。

- 新增 proxyReliable 标志位标记代理可靠性
- 新增 ProbeProxyBehavior 函数探测代理行为
- 端口扫描前检查代理可靠性并输出警告

Fixes #495

* refactor: 移动debug模块到common/debug子包

* fix(web): 修复-u模式下Web插件未执行的问题

* fix: 优化输出格式和颜色显示

- 网段统计格式改为 10.253.0.0/16 网段存活: 26
- WebTitle基础信息改为白色,指纹识别单独绿色输出
- 移除重复的端口数量输出

* fix: URL解析自动补全协议头

-uf 文件中 192.168.1.1:8080 自动转为 http://192.168.1.1:8080

* fix: 修复-u/-uf模式下URLs丢失导致0目标扫描的问题

Parse阶段将URLs设置到全局状态,但Initialize随后创建新状态
并覆盖了全局状态,导致URLs数据丢失。现在在创建新状态前
先保存并迁移Parse阶段设置的URLs和HostPorts数据。

* fix: 智能检测HTTP/HTTPS协议并优化URL显示

- 修复-u/-uf模式URLs丢失导致0目标扫描问题
- detectProtocol改为主动TLS握手检测,不依赖服务名
- WebTitle输出显示完整协议(http/https)
- 隐藏标准端口(80/443)使输出更简洁

* refactor: 精简parsers包,统一配置构建入口

- 删除冗余的中间层(XXXInput、XXXParser类)
- 新增 config_builder.go 统一配置构建
- parsers包从3000+行精简至~540行
- 保留核心函数:ParseIP、ParsePort、文件读取、凭据解析

* test: 扩展parsers单元测试覆盖边缘情况

- 新增内网简写解析测试(192/172/10)
- 新增完整IP范围和无效CIDR测试
- 新增Windows行尾(CRLF)处理测试
- 新增凭据和哈希文件解析测试
- 新增端口解析边缘情况测试
- 测试覆盖率达到94.2%

* refactor: 优化控制台输出格式

- 去掉时间戳,保留[*][+]前缀
- Web输出合并WebTitle和WebFinger为一行
- 有指纹显示绿色[+],无指纹显示白色[*]
- 格式: code:xxx len:xxx title:xxx server:xxx [指纹]
- 服务探测格式: [Product:xxx ||Version:xxx] Banner:(xxx)
- 字段对齐,输出更清爽

* feat: 添加凭据测试未发现弱密码的提示

- credential_tester.go: 失败时设置 Type=ResultTypeCredential
- scanner.go: 根据结果类型在 error 级别输出'未发现弱密码'提示
- 新增 i18n 翻译 brute_no_weak_pass

使用 -log all 或 -log error 可看到此提示

* refactor(logging): 重构日志级别为层级过滤设计

- LogLevel 从 string 改为 int 类型,支持层级比较
- 层级设计:Debug(0) < Base(1) < Info(2) < Success(3) < Vuln(4) < Error(5)
- 设置一个级别后,显示该级别及以上的日志
- Error 级别始终显示,不会被配置过滤掉
- 保留向后兼容别名(LevelAll, LevelInfoSuccess 等)
- 更新测试以匹配新的层级过滤行为

* style(logging): Error级别日志改为黄色显示

* style(findnet): NetInfo输出改为每行一个IP

* refactor(ms17010): 优化错误提示,明确指出SMBv1不支持等情况

* fix(credential): 修复凭据测试结果不一致的问题

问题原因:
1. 未知错误类型不重试,导致服务端限流时跳过正确密码
2. SSH 错误分类不够准确,某些临时错误未被识别

修复内容:
1. 未知错误改为可重试(可能是临时问题)
2. 增加 SSH 特有的网络错误识别(handshake failed, disconnect 等)

* fix(portfinger): 修复SMB2服务指纹识别和NetInfo输出问题

- 添加SMB2ProgNeg探针支持现代Windows的SMB2协议
- 修复Go regexp对高位字节的UTF-8兼容问题,使用Latin-1转换
- 修复探针失败后连接重建逻辑
- 修复vendor_product字段名不匹配问题
- 修复NetInfo多行输出被其他日志打断的问题

* fix(config): 从默认端口移除9100,避免触发打印机打印 (#517)

* feat(proxy): 增强代理端口扫描的深度验证机制

- 新增4阶段深度验证:Banner读取→探测发送→响应等待→最终判定
- 新增SOCKS5错误码和代理错误文本检测
- 优化ProbeProxyBehavior探测逻辑,发送数据验证连接可达性
- 解决透明代理/全回显代理导致的假阳性问题

* fix(proxy): 修复代理深度验证的若干问题

- detector.go: 修复 AutoConfigureProxy 覆盖探测结果的问题
  只有未探测过时才设置默认 proxyReliable 值

- port_scan.go: 改进深度验证机制
  - 使用带 Host header 的 HTTP GET 请求替代 OPTIONS
  - 延长响应等待超时至 2s 以适配慢速服务器
  - 正确重置连接 deadline 避免影响后续操作

* refactor: 统一 common 包文件命名风格

Flag.go -> flag.go

* refactor(proxy): 删除自定义 contains() 函数,改用标准库

- 用 strings.Contains() 替代手写的 contains()
- 删除过时的注释

* fix(parsers): 修复带横杠域名被误识别为IP范围的问题

如 111-555.sss.com 这类域名因包含 - 被错误解析为 IP 范围,
添加 looksLikeIPRange() 检查,只有 - 前是有效 IP 才走范围解析

* fix(proxy): 修复代理模式下服务识别错误和端口漏扫问题

- port_scan.go: 验证通过后重建干净连接,避免HTTP GET探测污染服务识别
- port_scan.go: 优化验证策略,用轻量CRLF探测替代HTTP GET,超时从2.2s降至0.6s
- manager.go: 修正ProbeProxyBehavior判断逻辑,超时应视为代理正常转发

* fix(pool): 移除线程池预分配,优化大规模扫描内存占用

WithPreAlloc(true) 会预先创建所有 worker goroutine,
在大规模扫描(如 25域名×65535端口)时可能导致内存问题

* refactor(logging): 统一日志前缀,删除废弃的 LogBase

- 删除 LogBase 函数,所有调用迁移到 LogInfo/LogError
- 新增 PrefixDebug ([.]) 前缀,所有日志级别现在都有前缀
- 修复日志输出缩进不一致的问题
- 删除未使用的 PrefixDefault 常量

* perf(icmp): 实现自适应等待算法优化存活检测性能

- 新增 waitAdaptive 函数,监控响应增量实现智能提前结束
- 算法保守原则:最小等待1s + 连续500ms无新响应才提前结束
- 添加100ms检查间隔避免CPU空转
- 保留原有最大等待时间(3s/6s)作为兜底
- 添加完整单元测试覆盖各种场景

优化效果:
- 全部响应:~100ms (原3s)
- 无响应:~1s (原3s)
- 部分响应后稳定:~1.5s (原3s)

* perf(scan): 实现启发式优化提升扫描体验

1. 端口优先级排序:高价值端口(80,443,22,3389等)优先扫描
   - 用户能更快看到有意义的结果
   - 不影响端口喷洒策略

2. TCP 补充探测:ICMP 响应率<10%时自动启用
   - 对未响应主机用 TCP 80/443/22/445 补充探测
   - 解决防火墙过滤 ICMP 导致漏检的问题

* refactor(grdp): 精简RDP库,删除认证检测不需要的代码

- 删除 VNC 协议支持 (protocol/rfb, client/rfb.go)
- 删除完整客户端框架 (client/)
- 删除 RemoteApp 等插件 (plugin/)
- 删除 RLE 图形解压 (core/rle.go)
- 删除绘图指令处理 (pdu/orders.go, pdu/gdi.go)
- 精简 screen.go,移除截图和完整会话功能
- 移除未使用的 RGB 转换函数

grdp 代码从 13,044 行精简至 7,581 行,削减 42%

* refactor(common): 删除死代码,优化代码风格

- 删除未使用的 joinStrings/joinInts 函数
- 删除未使用的 memStats 字段和 getMemoryInfo 方法
- 简化 parsePasswords 中的循环为 append(...) 形式

* refactor(services): 统一数据库插件的DBWrapper

4个数据库插件(MySQL、PostgreSQL、MSSQL、Oracle)都有相同的sql.DB包装代码,
合并为通用的SQLDBWrapper,减少重复。

* refactor(core,grdp): 删除未使用的死代码

- 移除 BaseScanStrategy.LogPluginInfoWithPort 方法(无调用者)
- 移除 mcs.go 中被注释的旧 connect 函数实现

* refactor: 删除 deadcode 检测出的未使用函数

- proxy/detector.go: 删除 IsSOCKS5Standard, IsProxyInitialized
- findnet.go: 删除 NetworkInfo.OneLine, TreeFormat 方法
- port_scan.go: 删除 estimateScanTime 函数
- web_scanner.go: 删除 GetFingerprints 函数
- 清理相关测试代码

* refactor: 删除更多未使用的死代码

- parse.go: 删除 RemoveDuplicate 函数及其测试
- parsers.go: 删除 excludeHosts, removeDuplicates 别名函数
- 更新测试使用真正的函数名

* fix(test): 修复 TestParseIP_InvalidIPRange 测试用例

- 删除不合理的测试用例(无效IP被当作普通主机名处理是设计行为)
- 修复测试逻辑,只在真正通过时输出"正确"

* fix(scan): 移除域名预解析,保留原始域名进行扫描

域名预解析会将域名转换为IP,导致虚拟主机场景下HTTP访问失败
(Host头变成IP而非域名,无法正确路由)

* fix(scan): 修复 -hf 参数无法单独使用的问题

* fix(proxy): 修复透明代理环境下 SOCKS5 代理全端口误报问题

问题:在透明代理(TUN模式)环境下使用 SOCKS5 代理扫描时,
会出现全端口开放的误报,因为代理可靠性检测被透明代理污染。

修复方案(参考 fscanx):
1. 将探针从 CRLF 改为 HTTP GET,更有效检测真实连接状态
2. 删除 "uncertain" 状态,无响应一律判定为端口关闭
3. 调整超时时间以适应代理链路延迟

Fixes #524

* feat(telnet): 新增 telnetd RCE 命令执行验证,修复未授权访问日志级别

* fix: 修复 i18n.Tr vet 报错、Unicode 测试用例,移除过期域名

- 移除 i18n.Tr 中错误的 fmt.Sprintf fallback,消除 go vet 误报
- 修复 match_engine_test Unicode 测试用例与 Latin-1 转换逻辑不匹配
- README 移除过期的 fscan.club 域名
- 添加 .gitattributes 统一换行符为 LF

* refactor: 统一控制台输出风格,使用统一的日志函数

手动合并 PR #558 的改动,适配重构后的代码路径

* fix(ci): 修复版本注入和CI触发配置

- goreleaser ldflags 指向正确的包路径 common.version/commit/date
- version 改为 var 支持 ldflags 注入,banner 显示 commit 和构建日期
- test-build 触发分支增加 dev-* 通配

* fix(ci): 修复 Windows 产物 .exe.exe 双后缀问题

* feat(ci): 扩展构建架构支持 MIPS/ARM/FreeBSD/Solaris
2026-04-25 17:39:16 +08:00

340 lines
23 KiB
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 fingerprint
import (
"regexp"
"github.com/shadow1ng/fscan/common"
)
// RuleData 指纹识别规则数据
type RuleData struct {
Name string
Type string
Rule string
Compiled *regexp.Regexp // 预编译的正则表达式
}
// init 在程序启动时预编译所有正则表达式
func init() {
for i := range RuleDatas {
re, err := regexp.Compile(RuleDatas[i].Rule)
if err != nil {
common.LogDebug("fingerprint rule compile failed: " + RuleDatas[i].Name + " - " + err.Error())
continue
}
RuleDatas[i].Compiled = re
}
}
// Md5Data MD5指纹数据
type Md5Data struct {
Name string
Md5Str string
}
// PocData POC漏洞检测数据
type PocData struct {
Name string
Alias string
}
// RuleDatas 指纹识别规则数据集
var RuleDatas = []RuleData{
{Name: "宝塔", Type: "code", Rule: "(app.bt.cn/static/app.png|安全入口校验失败|<title>入口校验失败</title>|href=\"http://www.bt.cn/bbs)"},
{Name: "深信服防火墙类产品", Type: "code", Rule: "(SANGFOR FW)"},
{Name: "360网站卫士", Type: "code", Rule: "(webscan.360.cn/status/pai/hash|wzws-waf-cgi|zhuji.360.cn/guard/firewall/stopattack.html)"},
{Name: "360网站卫士", Type: "headers", Rule: "(360wzws|CWAP-waf|zhuji.360.cn|X-Safe-Firewall)"},
{Name: "绿盟防火墙", Type: "code", Rule: "(NSFOCUS NF)"},
{Name: "绿盟防火墙", Type: "headers", Rule: "(NSFocus)"},
{Name: "Topsec-Waf", Type: "index", Rule: `(<META NAME="Copyright" CONTENT="Topsec Network Security Technology Co.,Ltd"/>","<META NAME="DESCRIPTION" CONTENT="Topsec web UI"/>)`},
{Name: "Anquanbao", Type: "headers", Rule: "(Anquanbao)"},
{Name: "BaiduYunjiasu", Type: "headers", Rule: "(yunjiasu)"},
{Name: "BigIP", Type: "headers", Rule: "(BigIP|BIGipServer)"},
{Name: "BinarySEC", Type: "headers", Rule: "(binarysec)"},
{Name: "BlockDoS", Type: "headers", Rule: "(BlockDos.net)"},
{Name: "CloudFlare", Type: "headers", Rule: "(cloudflare)"},
{Name: "Cloudfront", Type: "headers", Rule: "(cloudfront)"},
{Name: "Comodo", Type: "headers", Rule: "(Protected by COMODO)"},
{Name: "IBM-DataPower", Type: "headers", Rule: "(X-Backside-Transport)"},
{Name: "DenyAll", Type: "headers", Rule: "(sessioncookie=)"},
{Name: "dotDefender", Type: "headers", Rule: "(dotDefender)"},
{Name: "Incapsula", Type: "headers", Rule: "(X-CDN|Incapsula)"},
{Name: "Jiasule", Type: "headers", Rule: "(jsluid=)"},
{Name: "KONA", Type: "headers", Rule: "(AkamaiGHost)"},
{Name: "ModSecurity", Type: "headers", Rule: "(Mod_Security|NOYB)"},
{Name: "NetContinuum", Type: "headers", Rule: "(Cneonction|nnCoection|citrix_ns_id)"},
{Name: "Newdefend", Type: "headers", Rule: "(newdefend)"},
{Name: "Safe3", Type: "headers", Rule: "(Safe3WAF|Safe3 Web Firewall)"},
{Name: "Safedog", Type: "code", Rule: "(404.safedog.cn/images/safedogsite/broswer_logo.jpg)"},
{Name: "Safedog", Type: "headers", Rule: "(Safedog|WAF/2.0)"},
{Name: "SonicWALL", Type: "headers", Rule: "(SonicWALL)"},
{Name: "Stingray", Type: "headers", Rule: "(X-Mapping-)"},
{Name: "Sucuri", Type: "headers", Rule: "(Sucuri/Cloudproxy)"},
{Name: "Usp-Sec", Type: "headers", Rule: "(Secure Entry Server)"},
{Name: "Varnish", Type: "headers", Rule: "(varnish)"},
{Name: "Wallarm", Type: "headers", Rule: "(wallarm)"},
{Name: "阿里云", Type: "code", Rule: "(errors.aliyun.com)"},
{Name: "WebKnight", Type: "headers", Rule: "(WebKnight)"},
{Name: "Yundun", Type: "headers", Rule: "(YUNDUN)"},
{Name: "Yunsuo", Type: "headers", Rule: "(yunsuo)"},
{Name: "Coding pages", Type: "header", Rule: "(Coding Pages)"},
{Name: "启明防火墙", Type: "code", Rule: "(/cgi-bin/webui?op=get_product_model)"},
{Name: "Shiro", Type: "headers", Rule: "(=deleteMe|rememberMe=)"},
{Name: "Portainer(Docker管理)", Type: "code", Rule: "(portainer.updatePassword|portainer.init.admin)"},
{Name: "Gogs简易Git服务", Type: "cookie", Rule: "(i_like_gogs)"},
{Name: "Gitea简易Git服务", Type: "cookie", Rule: "(i_like_gitea)"},
{Name: "Nexus", Type: "code", Rule: "(Nexus Repository Manager)"},
{Name: "Nexus", Type: "cookie", Rule: "(NX-ANTI-CSRF-TOKEN)"},
{Name: "Harbor", Type: "code", Rule: "(<title>Harbor</title>)"},
{Name: "Harbor", Type: "cookie", Rule: "(harbor-lang)"},
{Name: "禅道", Type: "code", Rule: "(/theme/default/images/main/zt-logo.png|/zentao/theme/zui/css/min.css)"},
{Name: "禅道", Type: "cookie", Rule: "(zentaosid)"},
{Name: "协众OA", Type: "code", Rule: "(Powered by 协众OA)"},
{Name: "协众OA", Type: "cookie", Rule: "(CNOAOASESSID)"},
{Name: "xxl-job", Type: "code", Rule: "(分布式任务调度平台XXL-JOB)"},
{Name: "atmail-WebMail", Type: "cookie", Rule: "(atmail6)"},
{Name: "atmail-WebMail", Type: "code", Rule: "(/index.php/mail/auth/processlogin|Powered by Atmail)"},
{Name: "weblogic", Type: "code", Rule: "(/console/framework/skins/wlsconsole/images/login_WebLogic_branding.png|Welcome to Weblogic Application Server|<i>Hypertext Transfer Protocol -- HTTP/1.1</i>)"},
{Name: "致远OA", Type: "code", Rule: "(/seeyon/common/|/seeyon/USER-DATA/IMAGES/LOGIN/login.gif)"},
{Name: "discuz", Type: "code", Rule: "(content=\"Discuz! X\")"},
{Name: "Typecho", Type: "code", Rule: "(Typecho</a>)"},
{Name: "金蝶EAS", Type: "code", Rule: "(easSessionId)"},
{Name: "phpMyAdmin", Type: "cookie", Rule: "(pma_lang|phpMyAdmin)"},
{Name: "phpMyAdmin", Type: "code", Rule: "(/themes/pmahomme/img/logo_right.png)"},
{Name: "H3C-AM8000", Type: "code", Rule: "(AM8000)"},
{Name: "360企业版", Type: "code", Rule: "(360EntWebAdminMD5Secret)"},
{Name: "H3C公司产品", Type: "code", Rule: "([email protected])"},
{Name: "H3C ICG 1000", Type: "code", Rule: "(ICG 1000系统管理)"},
{Name: "Citrix-Metaframe", Type: "code", Rule: "(window.location=\"/Citrix/MetaFrame)"},
{Name: "H3C ER5100", Type: "code", Rule: "(ER5100系统管理)"},
{Name: "阿里云CDN", Type: "code", Rule: "(cdn.aliyuncs.com)"},
{Name: "CISCO_EPC3925", Type: "code", Rule: "(Docsis_system)"},
{Name: "CISCO ASR", Type: "code", Rule: "(CISCO ASR)"},
{Name: "H3C ER3200", Type: "code", Rule: "(ER3200系统管理)"},
{Name: "万户oa", Type: "code", Rule: "(/defaultroot/templates/template_system/common/css/|/defaultroot/scripts/|css/css_whir.css)"},
{Name: "Spark_Master", Type: "code", Rule: "(Spark Master at)"},
{Name: "华为_HUAWEI_SRG2220", Type: "code", Rule: "(HUAWEI SRG2220)"},
{Name: "蓝凌OA", Type: "code", Rule: "(/scripts/jquery.landray.common.js)"},
{Name: "深信服ssl-vpn", Type: "code", Rule: "(login_psw.csp)"},
{Name: "华为 NetOpen", Type: "code", Rule: "(/netopen/theme/css/inFrame.css)"},
{Name: "Citrix-Web-PN-Server", Type: "code", Rule: "(Citrix Web PN Server)"},
{Name: "juniper_vpn", Type: "code", Rule: "(welcome.cgi?p=logo|/images/logo_juniper_reversed.gif)"},
{Name: "360主机卫士", Type: "headers", Rule: "(zhuji.360.cn)"},
{Name: "Nagios", Type: "headers", Rule: "(Nagios Access)"},
{Name: "H3C ER8300", Type: "code", Rule: "(ER8300系统管理)"},
{Name: "Citrix-Access-Gateway", Type: "code", Rule: "(Citrix Access Gateway)"},
{Name: "华为 MCU", Type: "code", Rule: "(McuR5-min.js)"},
{Name: "TP-LINK Wireless WDR3600", Type: "code", Rule: "(TP-LINK Wireless WDR3600)"},
{Name: "泛微OA", Type: "headers", Rule: "(ecology_JSessionid)"},
{Name: "泛微OA", Type: "code", Rule: "(/spa/portal/public/index.js)"},
{Name: "华为_HUAWEI_ASG2050", Type: "code", Rule: "(HUAWEI ASG2050)"},
{Name: "360网站卫士", Type: "code", Rule: "(360wzb)"},
{Name: "Citrix-XenServer", Type: "code", Rule: "(Citrix Systems, Inc. XenServer)"},
{Name: "H3C ER2100V2", Type: "code", Rule: "(ER2100V2系统管理)"},
{Name: "zabbix", Type: "cookie", Rule: "(zbx_sessionid)"},
{Name: "zabbix", Type: "code", Rule: "(images/general/zabbix.ico|Zabbix SIA|zabbix-server: Zabbix)"},
{Name: "CISCO_VPN", Type: "headers", Rule: "(webvpn)"},
{Name: "360站长平台", Type: "code", Rule: "(360-site-verification)"},
{Name: "H3C ER3108GW", Type: "code", Rule: "(ER3108GW系统管理)"},
{Name: "o2security_vpn", Type: "headers", Rule: "(client_param=install_active)"},
{Name: "H3C ER3260G2", Type: "code", Rule: "(ER3260G2系统管理)"},
{Name: "H3C ICG1000", Type: "code", Rule: "(ICG1000系统管理)"},
{Name: "CISCO-CX20", Type: "code", Rule: "(CISCO-CX20)"},
{Name: "H3C ER5200", Type: "code", Rule: "(ER5200系统管理)"},
{Name: "linksys-vpn-bragap14-parintins", Type: "code", Rule: "(linksys-vpn-bragap14-parintins)"},
{Name: "360网站卫士常用前端公共库", Type: "code", Rule: "(libs.useso.com)"},
{Name: "H3C ER3100", Type: "code", Rule: "(ER3100系统管理)"},
{Name: "H3C-SecBlade-FireWall", Type: "code", Rule: "(js/MulPlatAPI.js)"},
{Name: "360webfacil_360WebManager", Type: "code", Rule: "(publico/template/)"},
{Name: "Citrix_Netscaler", Type: "code", Rule: "(ns_af)"},
{Name: "H3C ER6300G2", Type: "code", Rule: "(ER6300G2系统管理)"},
{Name: "H3C ER3260", Type: "code", Rule: "(ER3260系统管理)"},
{Name: "华为_HUAWEI_SRG3250", Type: "code", Rule: "(HUAWEI SRG3250)"},
{Name: "exchange", Type: "code", Rule: "(/owa/auth.owa|Exchange Admin Center)"},
{Name: "Spark_Worker", Type: "code", Rule: "(Spark Worker at)"},
{Name: "H3C ER3108G", Type: "code", Rule: "(ER3108G系统管理)"},
{Name: "Citrix-ConfProxy", Type: "code", Rule: "(confproxy)"},
{Name: "360网站安全检测", Type: "code", Rule: "(webscan.360.cn/status/pai/hash)"},
{Name: "H3C ER5200G2", Type: "code", Rule: "(ER5200G2系统管理)"},
{Name: "华为(HUAWEI)安全设备", Type: "code", Rule: "(sweb-lib/resource/)"},
{Name: "华为(HUAWEIUSG", Type: "code", Rule: "(UI_component/commonDefine/UI_regex_define.js)"},
{Name: "H3C ER6300", Type: "code", Rule: "(ER6300系统管理)"},
{Name: "华为_HUAWEI_ASG2100", Type: "code", Rule: "(HUAWEI ASG2100)"},
{Name: "TP-Link 3600 DD-WRT", Type: "code", Rule: "(TP-Link 3600 DD-WRT)"},
{Name: "NETGEAR WNDR3600", Type: "code", Rule: "(NETGEAR WNDR3600)"},
{Name: "H3C ER2100", Type: "code", Rule: "(ER2100系统管理)"},
{Name: "jira", Type: "code", Rule: "(jira.webresources)"},
{Name: "金和协同管理平台", Type: "code", Rule: "(金和协同管理平台)"},
{Name: "Citrix-NetScaler", Type: "code", Rule: "(NS-CACHE)"},
{Name: "linksys-vpn", Type: "headers", Rule: "(linksys-vpn)"},
{Name: "通达OA", Type: "code", Rule: "(/static/images/tongda.ico|http://www.tongda2000.com|通达OA移动版|Office Anywhere)"},
{Name: "华为(HUAWEISecoway设备", Type: "code", Rule: "(Secoway)"},
{Name: "华为_HUAWEI_SRG1220", Type: "code", Rule: "(HUAWEI SRG1220)"},
{Name: "H3C ER2100n", Type: "code", Rule: "(ER2100n系统管理)"},
{Name: "H3C ER8300G2", Type: "code", Rule: "(ER8300G2系统管理)"},
{Name: "金蝶政务GSiS", Type: "code", Rule: "(/kdgs/script/kdgs.js)"},
{Name: "Jboss", Type: "code", Rule: "(Welcome to JBoss|jboss.css)"},
{Name: "Jboss", Type: "headers", Rule: "(JBoss)"},
{Name: "泛微E-mobile", Type: "code", Rule: "(Weaver E-mobile|weaver,e-mobile)"},
{Name: "泛微E-mobile", Type: "headers", Rule: "(EMobileServer)"},
{Name: "齐治堡垒机", Type: "code", Rule: "(logo-icon-ico72.png|resources/themes/images/logo-login.png)"},
{Name: "ThinkPHP", Type: "headers", Rule: "(ThinkPHP)"},
{Name: "ThinkPHP", Type: "code", Rule: "(/Public/static/js/)"},
{Name: "weaver-ebridge", Type: "code", Rule: "(e-Bridge,http://wx.weaver)"},
{Name: "Laravel", Type: "headers", Rule: "(laravel_session)"},
{Name: "DWR", Type: "code", Rule: "(dwr/engine.js)"},
{Name: "swagger_ui", Type: "code", Rule: "(swagger-ui/css|\"swagger\":|swagger-ui.min.js)"},
{Name: "大汉版通发布系统", Type: "code", Rule: "(大汉版通发布系统|大汉网络)"},
{Name: "druid", Type: "code", Rule: "(druid.index|DruidDrivers|DruidVersion|Druid Stat Index)"},
{Name: "Jenkins", Type: "code", Rule: "(Jenkins)"},
{Name: "红帆OA", Type: "code", Rule: "(iOffice)"},
{Name: "VMware vSphere", Type: "code", Rule: "(VMware vSphere)"},
{Name: "打印机", Type: "code", Rule: "(打印机|media/canon.gif)"},
{Name: "finereport", Type: "code", Rule: "(isSupportForgetPwd|FineReport,Web Reporting Tool)"},
{Name: "蓝凌OA", Type: "code", Rule: "(蓝凌软件|StylePath:\"/resource/style/default/\"|/resource/customization|sys/ui/extend/theme/default/style/profile.css|sys/ui/extend/theme/default/style/icon.css)"},
{Name: "GitLab", Type: "code", Rule: "(href=\"https://about.gitlab.com/)"},
{Name: "Jquery-1.7.2", Type: "code", Rule: "(/webui/js/jquerylib/jquery-1.7.2.min.js)"},
{Name: "Hadoop Applications", Type: "code", Rule: "(/cluster/app/application)"},
{Name: "海昌OA", Type: "code", Rule: "(/loginmain4/js/jquery.min.js)"},
{Name: "帆软报表", Type: "code", Rule: "(WebReport/login.html|ReportServer)"},
{Name: "帆软报表", Type: "headers", Rule: "(数据决策系统)"},
{Name: "华夏ERP", Type: "headers", Rule: "(华夏ERP)"},
{Name: "金和OA", Type: "cookie", Rule: "(ASPSESSIONIDSSCDTDBS)"},
{Name: "久其财务报表", Type: "code", Rule: "(netrep/login.jsp|/netrep/intf)"},
{Name: "若依管理系统", Type: "code", Rule: "(ruoyi/login.js|ruoyi/js/ry-ui.js)"},
{Name: "启莱OA", Type: "code", Rule: "(js/jQselect.js|js/jquery-1.4.2.min.js)"},
{Name: "智慧校园管理系统", Type: "code", Rule: "(DC_Login/QYSignUp)"},
{Name: "JQuery-1.7.2", Type: "code", Rule: "(webui/js/jquerylib/jquery-1.7.2.min.js)"},
{Name: "浪潮 ClusterEngineV4.0", Type: "code", Rule: "(0;url=module/login/login.html)"},
{Name: "会捷通云视讯平台", Type: "code", Rule: "(him/api/rest/v1.0/node/role|him.app)"},
{Name: "源码泄露账号密码 F12查看", Type: "code", Rule: "(get_dkey_passwd)"},
{Name: "Smartbi Insight", Type: "code", Rule: "(smartbi.gcf.gcfutil)"},
{Name: "汉王人脸考勤管理系统", Type: "code", Rule: "(汉王人脸考勤管理系统|/Content/image/hanvan.png|/Content/image/hvicon.ico)"},
{Name: "亿赛通-电子文档安全管理系统", Type: "code", Rule: "(电子文档安全管理系统|/CDGServer3/index.jsp|/CDGServer3/SysConfig.jsp|/CDGServer3/help/getEditionInfo.jsp)"},
{Name: "天融信 TopApp-LB 负载均衡系统", Type: "code", Rule: "(TopApp-LB 负载均衡系统)"},
{Name: "中新金盾信息安全管理系统", Type: "code", Rule: "(中新金盾信息安全管理系统|中新网络信息安全股份有限公司)"},
{Name: "好视通", Type: "code", Rule: "(深圳银澎云计算有限公司|itunes.apple.com/us/app/id549407870|hao-shi-tong-yun-hui-yi-yuan)"},
{Name: "蓝海卓越计费管理系统", Type: "code", Rule: "(蓝海卓越计费管理系统|星锐蓝海网络科技有限公司)"},
{Name: "和信创天云桌面系统", Type: "code", Rule: "(和信下一代云桌面VENGD|/vesystem/index.php)"},
{Name: "金山", Type: "code", Rule: "(北京猎鹰安全科技有限公司|金山终端安全系统V9.0Web控制台|北京金山安全管理系统技术有限公司|金山V8)"},
{Name: "WIFISKY-7层流控路由器", Type: "code", Rule: "(深圳市领空技术有限公司|WIFISKY 7层流控路由器)"},
{Name: "MetInfo-米拓建站", Type: "code", Rule: "(MetInfo|/skin/style/metinfo.css|/skin/style/metinfo-v2.css)"},
{Name: "IBM-Lotus-Domino", Type: "code", Rule: "(/mailjump.nsf|/domcfg.nsf|/names.nsf|/homepage.nsf)"},
{Name: "APACHE-kylin", Type: "code", Rule: "(url=kylin)"},
{Name: "C-Lodop打印服务系统", Type: "code", Rule: "(/CLodopfuncs.js|www.c-lodop.com)"},
{Name: "HFS", Type: "code", Rule: "(href=\"http://www.rejetto.com/hfs/)"},
{Name: "Jellyfin", Type: "code", Rule: "(content=\"http://jellyfin.org\")"},
{Name: "FIT2CLOUD-JumpServer-堡垒机", Type: "code", Rule: "(<title>JumpServer</title>)"},
{Name: "Alibaba Nacos", Type: "code", Rule: "(<title>Nacos</title>)"},
{Name: "Nagios", Type: "headers", Rule: "(nagios admin)"},
{Name: "Pulse Connect Secure", Type: "code", Rule: "(/dana-na/imgs/space.gif)"},
{Name: "h5ai", Type: "code", Rule: "(powered by h5ai)"},
{Name: "jeesite", Type: "cookie", Rule: "(jeesite.session.id)"},
{Name: "拓尔思SSO", Type: "cookie", Rule: "(trsidsssosessionid)"},
{Name: "拓尔思WCMv7/6", Type: "cookie", Rule: "(com.trs.idm.coSessionId)"},
{Name: "天融信脆弱性扫描与管理系统", Type: "code", Rule: "(/js/report/horizontalReportPanel.js)"},
{Name: "天融信网络审计系统", Type: "code", Rule: "(onclick=dlg_download())"},
{Name: "天融信日志收集与分析系统", Type: "code", Rule: "(天融信日志收集与分析系统)"},
{Name: "URP教务系统", Type: "code", Rule: "(北京清元优软科技有限公司)"},
{Name: "科来RAS", Type: "code", Rule: "(科来软件 版权所有|i18ninit.min.js)"},
{Name: "正方OA", Type: "code", Rule: "(zfoausername)"},
{Name: "希尔OA", Type: "code", Rule: "(/heeroa/login.do)"},
{Name: "泛普建筑工程施工OA", Type: "code", Rule: "(/dwr/interface/LoginService.js)"},
{Name: "中望OA", Type: "code", Rule: "(/IMAGES/default/first/xtoa_logo.png|/app_qjuserinfo/qjuserinfoadd.jsp)"},
{Name: "海天OA", Type: "code", Rule: "(HTVOS.js)"},
{Name: "信达OA", Type: "code", Rule: "(http://www.xdoa.cn</a>)"},
{Name: "任我行CRM", Type: "code", Rule: "(CRM_LASTLOGINUSERKEY)"},
{Name: "Spammark邮件信息安全网关", Type: "code", Rule: "(/cgi-bin/spammark?empty=1)"},
{Name: "winwebmail", Type: "code", Rule: "(WinWebMail Server|images/owin.css)"},
{Name: "浪潮政务系统", Type: "code", Rule: "(LangChao.ECGAP.OutPortal|OnlineQuery/QueryList.aspx)"},
{Name: "天融信防火墙", Type: "code", Rule: "(/cgi/maincgi.cgi)"},
{Name: "网神防火墙", Type: "code", Rule: "(css/lsec/login.css)"},
{Name: "帕拉迪统一安全管理和综合审计系统", Type: "code", Rule: "(module/image/pldsec.css)"},
{Name: "蓝盾BDWebGuard", Type: "code", Rule: "(BACKGROUND: url(images/loginbg.jpg) #e5f1fc)"},
{Name: "Huawei SMC", Type: "code", Rule: "(Script/SmcScript.js?version=)"},
{Name: "coremail", Type: "code", Rule: "(/coremail/bundle/|contextRoot: \"/coremail\"|coremail/common)"},
{Name: "activemq", Type: "code", Rule: "(activemq_logo|Manage ActiveMQ broker)"},
{Name: "锐捷网络", Type: "code", Rule: "(static/img/title.ico|support.ruijie.com.cn|Ruijie - NBR|eg.login.loginBtn)"},
{Name: "禅道", Type: "code", Rule: "(/theme/default/images/main/zt-logo.png|zentaosid)"},
{Name: "weblogic", Type: "code", Rule: "(/console/framework/skins/wlsconsole/images/login_WebLogic_branding.png|Welcome to Weblogic Application Server|<i>Hypertext Transfer Protocol -- HTTP/1.1</i>|<TITLE>Error 404--Not Found</TITLE>|Welcome to Weblogic Application Server|<title>Oracle WebLogic Server 管理控制台</title>)"},
{Name: "weblogic", Type: "headers", Rule: "(WebLogic)"},
{Name: "致远OA", Type: "code", Rule: "(/seeyon/USER-DATA/IMAGES/LOGIN/login.gif|/seeyon/common/)"},
{Name: "蓝凌EIS智慧协同平台", Type: "code", Rule: "(/scripts/jquery.landray.common.js)"},
{Name: "深信服ssl-vpn", Type: "code", Rule: "(login_psw.csp|loginPageSP/loginPrivacy.js|/por/login_psw.csp)"},
{Name: "Struts2", Type: "code", Rule: "(org.apache.struts2|Struts Problem Report|struts.devMode|struts-tags|There is no Action mapped for namespace)"},
{Name: "泛微OA", Type: "code", Rule: "(/spa/portal/public/index.js|wui/theme/ecology8/page/images/login/username_wev8.png|/wui/index.html#/?logintype=1)"},
{Name: "Swagger UI", Type: "code", Rule: "(/swagger-ui.css|swagger-ui-bundle.js|swagger-ui-standalone-preset.js)"},
{Name: "金蝶政务GSiS", Type: "code", Rule: "(/kdgs/script/kdgs.js|HTML5/content/themes/kdcss.min.css|/ClientBin/Kingdee.BOS.XPF.App.xap)"},
{Name: "蓝凌OA", Type: "code", Rule: "(蓝凌软件|StylePath:\"/resource/style/default/\"|/resource/customization|sys/ui/extend/theme/default/style/icon.css|sys/ui/extend/theme/default/style/profile.css)"},
{Name: "用友NC", Type: "code", Rule: "(Yonyou UAP|YONYOU NC|/Client/Uclient/UClient.dmg|logo/images/ufida_nc.png|iufo/web/css/menu.css|/System/Login/Login.asp?AppID=|/nc/servlet/nc.ui.iufo.login.Index)"},
{Name: "用友IUFO", Type: "code", Rule: "(iufo/web/css/menu.css)"},
{Name: "TELEPORT堡垒机", Type: "code", Rule: "(/static/plugins/blur/background-blur.js)"},
{Name: "JEECMS", Type: "code", Rule: "(/r/cms/www/red/js/common.js|/r/cms/www/red/js/indexshow.js|Powered by JEECMS|JEECMS|/jeeadmin/jeecms/index.do)"},
{Name: "CMS", Type: "code", Rule: "(Powered by .*CMS)"},
{Name: "目录遍历", Type: "code", Rule: "(Directory listing for /)"},
{Name: "ATLASSIAN-Confluence", Type: "code", Rule: "(com.atlassian.confluence)"},
{Name: "ATLASSIAN-Confluence", Type: "headers", Rule: "(X-Confluence)"},
{Name: "向日葵", Type: "code", Rule: "({\"success\":false,\"msg\":\"Verification failure\"})"},
{Name: "Kubernetes", Type: "code", Rule: "(Kubernetes Dashboard</title>|Kubernetes Enterprise Manager|Mirantis Kubernetes Engine|Kubernetes Resource Report)"},
{Name: "WordPress", Type: "code", Rule: "(/wp-login.php?action=lostpassword|WordPress</title>)"},
{Name: "RabbitMQ", Type: "code", Rule: "(RabbitMQ Management)"},
{Name: "dubbo", Type: "headers", Rule: "(Basic realm=\"dubbo\")"},
{Name: "Spring env", Type: "code", Rule: "(logback)"},
{Name: "ueditor", Type: "code", Rule: "(ueditor.all.js|UE.getEditor)"},
{Name: "亿邮电子邮件系统", Type: "code", Rule: "(亿邮电子邮件系统|亿邮邮件整体解决方案)"},
}
// Md5Datas MD5指纹数据集
var Md5Datas = []Md5Data{
{"BIG-IP", "04d9541338e525258daf47cc844d59f3"},
{"蓝凌OA", "302464c3f6207d57240649926cfc7bd4"},
{"JBOSS", "799f70b71314a7508326d1d2f68f7519"},
{"锐捷网络", "d8d7c9138e93d43579ebf2e384745ba8"},
{"锐捷网络", "9c21df9129aeec032df8ac15c84e050d"},
{"锐捷网络", "a45883b12d753bc87aff5bddbef16ab3"},
{"深信服edr", "0b24d4d5c7d300d50ee1cd96059a9e85"},
{"致远OA", "cdc85452665e7708caed3009ecb7d4e2"},
{"致远OA", "17ac348fcce0b320e7bfab3fe2858dfa"},
{"致远OA", "57f307ad3764553df84e7b14b7a85432"},
{"致远OA", "3c8df395ec2cbd72782286d18a286a9a"},
{"致远OA", "2f761c27b6b7f9386bbd61403635dc42"},
{"齐治堡垒机", "48ee373f098d8e96e53b7dd778f09ff4"},
{"SpringBoot", "0488faca4c19046b94d07c3ee83cf9d6"},
{"ThinkPHP", "f49c4a4bde1eec6c0b80c2277c76e3db"},
{"通达OA", "ed0044587917c76d08573577c8b72883"},
{"泛微E-mobile", "41eca7a9245394106a09b2534d8030df"},
{"泛微OA", "c27547e27e1d2c7514545cd8d5988946"},
{"泛微OA", "9b1d3f08ede38dbe699d6b2e72a8febb"},
{"泛微OA", "281348dd57383c1f214ffb8aed3a1210"},
{"GitLab", "85c754581e1d4b628be5b7712c042224"},
{"Hikvision-视频监控", "89b932fcc47cf4ca3faadb0cfdef89cf"},
{"华夏erp", "c68b15c45cf80115a943772f7d0028a6"},
{"OpenSNS", "08711abfb016a55c0e84f7b54bef5632"},
{"MetInfo-米拓建站", "2a9541b5c2225ed2f28734c0d75e456f"},
{"IBM-Lotus-Domino", "36c1002bb579edf52a472b9d2e39bb50"},
{"IBM-Lotus-Domino", "639b61409215d770a99667b446c80ea1"},
{"ATLASSIAN-Confluence", "b91d19259cf480661ef93b67beb45234"},
{"activemq", "05664fb0c7afcd6436179437e31f3aa6"},
{"coremail", "ad74ff8f9a2f630fc2c5e6b3aa0a5cb8"},
}
// PocDatas POC漏洞检测数据集
var PocDatas = []PocData{
{"致远OA", "seeyon"},
{"泛微OA", "weaver"},
{"通达OA", "tongda"},
{"蓝凌OA", "landray"},
{"ThinkPHP", "thinkphp"},
{"Nexus", "nexus"},
{"齐治堡垒机", "qizhi"},
{"weaver-ebridge", "weaver-ebridge"},
{"weblogic", "weblogic"},
{"zabbix", "zabbix"},
{"VMware vSphere", "vmware"},
{"Jboss", "jboss"},
{"用友", "yongyou"},
{"用友IUFO", "yongyou"},
{"coremail", "coremail"},
{"金山", "kingsoft"},
}