preload

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2025 License: Apache-2.0, BSD-3-Clause, MIT, + 2 more Imports: 11 Imported by: 0

Documentation

Overview

Package preload mlflow漏洞go语言写法

Package preload 漏洞指纹判断golang语言写法

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalFpVersion

func EvalFpVersion(uri string, hp *httpx.HTTPX, fp parser.FingerPrint) (string, error)

EvalFpVersion 获取指定指纹的版本信息 通过正则表达式从响应中提取版本号

Types

type FingerPrintFunc

type FingerPrintFunc interface {
	Match(httpx *httpx.HTTPX, uri string) bool
	GetVersion(httpx *httpx.HTTPX, uri string) (string, error)
	Name() string
}

FingerPrintFunc 指纹识别接口 实现此接口可以添加自定义的指纹识别逻辑

func CollectedFpReqs

func CollectedFpReqs() []FingerPrintFunc

CollectedFpReqs 返回所有已注册的指纹识别实现

type FpResult

type FpResult struct {
	Name    string `json:"name"`
	Version string `json:"version,omitempty"`
	Type    string `json:"type,omitempty"`
}

FpResult 指纹结构体

type Mlflow

type Mlflow struct {
}

Mlflow struct implements fingerprint detection for MLflow services

func (Mlflow) GetVersion

func (m Mlflow) GetVersion(httpx *httpx.HTTPX, uri string) (string, error)

GetVersion attempts to extract the MLflow version from the service 通过以下步骤获取 MLflow 版本: 1. 获取主页面 2. 提取 JS 文件路径 3. 请求 JS 文件 4. 通过正则表达式匹配版本号

func (Mlflow) Match

func (m Mlflow) Match(httpx *httpx.HTTPX, uri string) bool

Match checks if the given URI points to an MLflow service 通过检查页面标题来判断是否为 MLflow 服务

func (Mlflow) Name

func (m Mlflow) Name() string

Name returns the identifier for this fingerprint detector

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner 指纹识别运行器 用于执行指纹识别任务

func New

func New(hp *httpx.HTTPX, fps parser.FingerPrints) *Runner

New 创建新的Runner实例

func (*Runner) Deduplication

func (r *Runner) Deduplication(results []FpResult) []FpResult

Deduplication 对指纹识别结果进行去重 如果存在相同名称的指纹,保留版本号不为空的结果

func (*Runner) GetFps

func (r *Runner) GetFps() []parser.FingerPrint

GetFps 获取当前Runner中的所有指纹规则

func (*Runner) RunFpReqs

func (r *Runner) RunFpReqs(uri string, concurrent int, faviconHash int32) []FpResult

RunFpReqs 执行指纹识别 uri: 目标URL concurrent: 并发数 faviconHash: favicon图标的hash值 返回识别到的指纹结果列表

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL