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.
Click to show internal directories.
Click to hide internal directories.