hydra

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultAuthMap map[string]*AuthList
	CustomAuthMap  *AuthList
	// rtsp://admin:admin@192.168.0.111:554/0x8b6c42
	// rtsp: 554, 5554,8554
	ProtocolList = strings.Split("rdp,ssh,rsh-spx,mysql,mssql,oracle,postgresql,redis,ftp,mongodb,mongod,smb,telnet,snmp,wap-wsp,router,winrm,pop3,socks5,vnc", ",")
)

Functions

func CheckWeakPassword

func CheckWeakPassword(ip, service string, port int)

弱口令检测

func DoNmapRst

func DoNmapRst(bf *bytes.Buffer)

处理 naabu 端口扫描环节的结果文件

func DoNmapWithFile

func DoNmapWithFile(s string, bf *bytes.Buffer) bool

处理使用者自己扫描的结果

func DoParseXml

func DoParseXml(s string, bf *bytes.Buffer)

func GetAttr

func GetAttr(att []xmlquery.Attr, name string) string

func InitCustomAuthMap

func InitCustomAuthMap(user, pass []string)

func InitDefaultAuthMap

func InitDefaultAuthMap()

func Ok

func Ok(protocol string) bool

func RouterOsCracker

func RouterOsCracker(i interface{}) interface{}

func Socks5Cracker

func Socks5Cracker(i interface{}) interface{}

func Start

func Start(IPAddr string, Port int, Protocol string)

密码破解

func VncCracker

func VncCracker(i interface{}) interface{}

func WinrmCracker

func WinrmCracker(i interface{}) interface{}

Types

type Auth

type Auth struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Other    map[string]string
}

func NewAuth

func NewAuth() Auth

func NewAuthFromPasswords

func NewAuthFromPasswords(passwords []string) []Auth

func NewAuthFromUsernameAndPassword

func NewAuthFromUsernameAndPassword(usernames, passwords []string) []Auth

func NewSpecialAuth

func NewSpecialAuth(username, password string) Auth

func (*Auth) MakePassword

func (a *Auth) MakePassword()

type AuthInfo

type AuthInfo struct {
	Protocol string `json:"Protocol"`
	Port     int    `json:"Port"`
	IPAddr   string `json:"IPAddr"`
	Auth     Auth   `json:"Auth,omitempty"`
	Status   bool   `json:"status,omitempty"`
}

func NewAuthInfo

func NewAuthInfo(IPAddr string, Port int, Protocol string) *AuthInfo

func (*AuthInfo) Display

func (a *AuthInfo) Display() string

func (*AuthInfo) Output

func (a *AuthInfo) Output() string

type AuthList

type AuthList struct {
	Username []string
	Password []string
	Special  []Auth
}

func GetDefaultFtpList

func GetDefaultFtpList(t string) *AuthList

func NewAuthList

func NewAuthList() *AuthList

func (*AuthList) Dict

func (a *AuthList) Dict(onlyPassword bool) []Auth

func (*AuthList) IsEmpty

func (a *AuthList) IsEmpty() bool

func (*AuthList) Length

func (a *AuthList) Length() int

func (*AuthList) Merge

func (a *AuthList) Merge(list *AuthList)

func (*AuthList) Replace

func (a *AuthList) Replace(list *AuthList)

type Cracker

type Cracker struct {
	Pool *pool.Pool

	Out chan AuthInfo
	// contains filtered or unexported fields
}

func NewCracker

func NewCracker(info *AuthInfo, isAuthUpdate bool, threads int) *Cracker

func (*Cracker) Length

func (c *Cracker) Length() int

func (*Cracker) OutWatchDog

func (c *Cracker) OutWatchDog()

func (*Cracker) Run

func (c *Cracker) Run()

type PPDict

type PPDict struct {
	Username  string
	Paswd     string
	DefaultUp string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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