crack

package
v1.8.40 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PortNames = map[int]string{
		21:    "ftp",
		22:    "ssh",
		135:   "wmi",
		445:   "smb",
		1433:  "mssql",
		1521:  "oracle",
		3306:  "mysql",
		3389:  "rdp",
		5432:  "postgres",
		6379:  "redis",
		11211: "memcached",
		27017: "mongodb",
	}

	SupportProtocols = map[string]bool{
		"ftp":       true,
		"ssh":       true,
		"wmi":       true,
		"wmihash":   true,
		"smb":       true,
		"mssql":     true,
		"oracle":    true,
		"mysql":     true,
		"rdp":       true,
		"postgres":  true,
		"redis":     true,
		"memcached": true,
		"mongodb":   true,
	}
)

Functions

This section is empty.

Types

type IpAddr

type IpAddr struct {
	Ip       string
	Port     int
	Protocol string
}

func FilterModule

func FilterModule(addrs []*IpAddr, module string) (results []*IpAddr)

func ParseTargets

func ParseTargets(targets []string) (results []*IpAddr)

type Options

type Options struct {
	Threads  int
	Timeout  int
	Delay    int
	CrackAll bool

	UserMap      map[string][]string
	CommonPass   []string
	TemplatePass []string
}

type Result

type Result struct {
	Addr     string
	Protocol string
	UserPass string
}

type Runner

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

func NewRunner

func NewRunner(options *Options) (*Runner, error)

func (*Runner) CheckAlive

func (r *Runner) CheckAlive(addrs []*IpAddr) (results []*IpAddr)

CheckAlive 存活检测

func (*Runner) Crack

func (r *Runner) Crack(addr *IpAddr, userDict []string, passDict []string) (results []*Result)

func (*Runner) Run

func (r *Runner) Run(addrs []*IpAddr, userDict []string, passDict []string) (results []*Result)

Directories

Path Synopsis
grdp
nolint
nolint
smb
nolint
nolint
wmiexec
nolint
nolint

Jump to

Keyboard shortcuts

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