semi

package
v1.2.2-sp6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BruteForce = cli.Command{
	Name:      "bruteforce",
	ShortName: "brute",
	Usage:     "模拟点击暴力密码破解",
	Before:    nil,
	After:     nil,

	OnUsageError: nil,
	Subcommands:  nil,

	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "u,url",
			Usage: "target login url",
		},
		cli.StringFlag{
			Name:  "userfile,user",
			Usage: "username dict filepath",
		},
		cli.StringFlag{
			Name:  "passfile,pass",
			Usage: "password dict filepath",
		},
	},
	Action: func(c *cli.Context) error {
		url := c.String("url")
		if url == "" {
			log.Errorf("get url blank.")
			return nil
		}
		opts := make([]bruteforce.ConfigOpt, 0)
		username := c.String("userfile")
		password := c.String("passfile")
		if username != "" {
			opts = append(opts, bruteforce.WithUserPassPath(username, password))
		}

		bruteforce.BruteForceStart(url, opts...)
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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