Skip to content

技术检测

🔍 识别网站使用的技术栈。

pkg/techdetect 通过指纹匹配识别框架/CMS/CDN/分析等。

自动进行,无需开关

技术检测在证据采集后自动运行,结果存入 Result.Technologies。只要跑了截图,就有技术栈结果,无需额外标志。

指纹维度

Fingerprint 从四个维度匹配:

维度字段示例
HTMLHTML []string(正则)<script src="jquery
Headers map[string]stringServer: nginx
CookieCookies map[string]stringPHPSESSID
MetaMeta map[string]stringgenerator: WordPress

流程

技术检测在证据采集后自动进行,结果存入 Result.Technologies

证据采集完成后到 Technologies 字段写入的时序:

Detector

go
func NewDetector() *Detector
func NewDetectorWithFingerprints(fps []Fingerprint) *Detector

NewDetector 用内置指纹库;NewDetectorWithFingerprints 可自定义。

查询

sql
-- 每站技术栈
SELECT s.host, group_concat(t.name) FROM technologies t
JOIN screenshots s ON t.result_id = s.id GROUP BY s.host;

-- 用某技术的站点
SELECT s.host FROM technologies t
JOIN screenshots s ON t.result_id = s.id WHERE t.name = 'WordPress';

用途

  • 资产技术栈盘点
  • 发现特定框架站点(漏洞影响面)
  • CMS 识别

下一步

基于 MIT 许可发布