-
Notifications
You must be signed in to change notification settings - Fork 0
/
wpbrute.go
75 lines (69 loc) · 1.51 KB
/
wpbrute.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package main
import (
"fmt"
"os"
"wpbrute/cmd"
"wpbrute/cmd/brute"
"wpbrute/cmd/load"
"wpbrute/cmd/recon"
"wpbrute/cmd/report"
cli "github.com/urfave/cli/v2"
)
func main() {
app := cli.NewApp()
app.Before = cmd.BeforeCommand
app.After = cmd.AfterCommand
app.Name = "wpbrute"
app.Usage = "A bespoke security tool for redteamers to test wordpress credentials on a variety of targets. See the 'help' command for usage instructions."
app.Commands = []*cli.Command{
{
Name: "load",
Subcommands: []*cli.Command{
load.LoadTargetsCommand,
load.LoadProxiesCommand,
},
},
{
Name: "report",
Subcommands: []*cli.Command{
report.ReportDumpGoodies,
report.ReportClean,
report.ReportStats,
report.ReportDisableEdu, // Disable .edu domains - you better not actually be using this for evil.
report.ReportDisableGov, // Disable .gov domains - you better not actually be using this for evil.
},
},
{
Name: "recon",
Subcommands: []*cli.Command{
recon.ReconCheckHTTPS,
recon.ReconCheckHTTPS2,
recon.ReconCheckWPLogin,
recon.ReconCheckXMLRPC,
},
},
{
Name: "brute",
Subcommands: []*cli.Command{
brute.BruteWPLogin,
brute.BruteXMLRPCLogin,
},
},
}
app.Flags = []cli.Flag{
&cli.StringFlag{
Name: "config",
Value: "config.yml",
Usage: "Config file",
},
&cli.BoolFlag{
Name: "migrate",
Value: false,
Usage: "Whether or not to migrate the database",
},
}
err := app.Run(os.Args)
if err != nil {
fmt.Println(err)
}
}