Skip to content

Commit

Permalink
feat bbscan 扫描时对比扫描中识别到的指纹
Browse files Browse the repository at this point in the history
  • Loading branch information
yhy0 committed May 19, 2024
1 parent da4ac5f commit acae19e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scan/bbscan/bbscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func BBscan(u string, root bool, fingprints []string, header map[string]string,
}
resContents = append(resContents, strings.ReplaceAll(url404res.Body, path404, ""))
}
fingprints = util.RemoveDuplicateElement(append(fingprints, technologies...))

pool, _ := ants.NewPool(20)
defer pool.Release() // 释放协程池
Expand Down Expand Up @@ -351,15 +352,15 @@ func BBscan(u string, root bool, fingprints []string, header map[string]string,
if strings.Contains(target, "swagger") {
swagger.Scan(target, client)
}
l.Lock()

if res.StatusCode == 401 {
l.Lock()
technologies = append(technologies, "Basic")
l.Unlock()
}

l.Lock()
technologies = append(addFingerprintsnormal(target, technologies, res, client)) // 基于200页面文件扫描指纹添加
resContents = append(resContents, strings.ReplaceAll(res.Body, target, ""))
fingprints = util.RemoveDuplicateElement(append(fingprints, technologies...))

l.Unlock()

output.OutChannel <- output.VulMessage{
Expand Down

0 comments on commit acae19e

Please sign in to comment.