service

package
v0.0.0-...-b5b2af5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceMatcherMap = make(map[string]string)

ServiceMatcherMap 对于每一个服务,需要对应一个爆破方法 服务需要在init函数指定与之对应的hash算法

Functions

func GetDict

func GetDict(service string) (results []string)

func GetHash

func GetHash(service string) (hashI hash.Hash, err error)

func GetType

func GetType(service IService) event.WeakpassService

func Register

func Register(key string, p IService)

Types

type IService

type IService interface {
	Name() string
	FilePath() []string
	GetRecords(file io.Reader) (records []model.Record, err error)
}

func GetModuleByName

func GetModuleByName(modName string) ([]IService, error)

GetModuleByName 根据模块名获取对应Service列表

type SshService

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

func (*SshService) FilePath

func (i *SshService) FilePath() (paths []string)

func (*SshService) GetRecords

func (i *SshService) GetRecords(file io.Reader) (records []model.Record, err error)

func (*SshService) Name

func (i *SshService) Name() string

Jump to

Keyboard shortcuts

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