crack

package
v0.0.0-...-5d16c2e Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 10 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,
	}
)
View Source
var (
	UserMap = map[string][]string{

		"ftp": {"ftp"},

		"ssh":       {"root"},
		"wmi":       {"administrator"},
		"wmihash":   {"administrator"},
		"smb":       {"administrator"},
		"mssql":     {"sa"},
		"oracle":    {"oracle", "system"},
		"mysql":     {"root"},
		"rdp":       {"administrator"},
		"postgres":  {"postgres", "admin"},
		"redis":     {""},
		"memcached": {""},
		"mongodb":   {"admin", "root"},
	}

	TemplatePass = []string{"{user}", "{user}!@#123", "{user}!@#456", "{user}#123", "{user}*PWD", "{user}1", "{user}11", "{user}12#$", "{user}123", "{user}123456", "{user}@111", "{user}@123", "{user}@123#4", "{user}@2016", "{user}@2017", "{user}@2018", "{user}@2019", "{user}@2020", "{user}@2021", "{user}@2022", "{user}_123"}

	CommonPass = []string{"", "!QAZ2wsx", "000000", "1", "111111", "123", "123123", "12313", "123321", "1234", "12345!@#$%abc", "123456", "12345678", "123456789", "1234567890", "12345678;abc", "123456Aa", "123qwe!@#", "123qweASD", "1q2w3e", "1qaz2wsx", "1QAZ2wsx", "1qaz@WSX", "1QAZ@WSX", "1qazxsw2", "654321", "666666", "8888888", "a11111", "a123123", "a12345", "a123456", "a123456", "a123456.", "Aa123123", "Aa1234", "Aa1234.", "Aa12345", "Aa12345.", "Aa123456", "Aa123456!", "Aa123456789", "abc+123", "abc123", "abc123456", "abc@123", "admin", "admin123", "Admin123", "admin123!@#", "admin888", "admin@123", "Admin@123", "Admin@1234", "admin@888", "adminadmin", "adminPwd", "Asdfg@123", "Charge123", "P@ssw0rd", "P@ssw0rd!", "P@ssword", "p@ssword", "pass123", "pass@123", "Passw0rd", "password", "qwe123", "qwe123!@#", "root", "sysadmin", "system", "test", "test123", "xcv@123", "zxc1qaz", "Zxcvb123"}
)

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
	Silent   bool
}

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