fix: 修复 #591 POC 对 HTTPS 端口误用 HTTP + #592 空指针 panic

1. buildTargetURL 对 443/8443 等已知 TLS 端口默认使用 https scheme,
   webtitle 触发 POC 扫描前将检测到的协议写回 info.URL,
   避免对 HTTPS 服务发送 HTTP 请求导致 EOF
2. GetInfo 添加 probe nil 检查,防止探针初始化失败时空指针 panic
3. 删除 test-nuclei-example.yaml 测试模板,避免 robots.txt 误报
This commit is contained in:
ZacharyZcR
2026-06-27 16:23:52 +08:00
parent 4976cb1f6b
commit 4922122530
4 changed files with 19 additions and 27 deletions
+4
View File
@@ -392,6 +392,10 @@ func (i *Info) tryProbes(response []byte, probes []*Probe) bool {
// GetInfo 分析响应数据并提取服务信息
func (i *Info) GetInfo(response []byte, probe *Probe) {
if probe == nil {
return
}
// 响应数据有效性检查
if len(response) <= 0 {
common.LogDebug(i18n.GetText("service_probe_empty_response"))