sub

package
v1.2.1-sp3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Example = cli.Command{
	Name:   "example",
	Usage:  "page simulator example",
	Before: nil,
	After:  nil,

	OnUsageError: nil,
	Subcommands:  nil,

	Flags: []cli.Flag{
		cli.BoolFlag{
			Name:  "bruteforce",
			Usage: "bruteforce example",
		},
		cli.StringFlag{
			Name:  "url",
			Usage: "bruteforce example url",
		},
	},
	Action: func(c *cli.Context) error {
		url := c.String("url")
		if url == "" {

			url = "http://192.168.0.68/#/login"
		}
		usernameList := []string{"admin"}
		passwordList := []string{"luckyadmin123"}
		if c.Bool("bruteforce") {

			userOpt := examples.WithUserNameList(usernameList)
			passOpt := examples.WithPassWordList(passwordList)
			scanMode := examples.WithCaptchaMode("common_arithmetic")

			result, err := examples.BruteForceModuleV2(url, userOpt, passOpt, scanMode)
			log.Info(err)
			log.Info(result.Username(), result.Password(), result.Log(), result.Cookie())
		}
		return nil
	},
}
View Source
var Simple = cli.Command{
	Name:   "simple",
	Usage:  "simple browser simulator action",
	Before: nil,
	After:  nil,

	OnUsageError: nil,
	Subcommands:  nil,

	Action: func(c *cli.Context) error {
		return nil
	},
}
View Source
var TestModule = cli.Command{
	Name:   "test",
	Usage:  "test sth",
	Before: nil,
	After:  nil,

	OnUsageError: nil,
	Subcommands:  nil,

	Flags: []cli.Flag{
		cli.BoolFlag{
			Name:  "eval",
			Usage: "eval test",
		},
		cli.BoolFlag{
			Name:  "getstr",
			Usage: "GetElementString",
		},
		cli.BoolFlag{
			Name:  "parent",
			Usage: "get parent",
		},
		cli.BoolFlag{
			Name: "test",
		},
	},
	Action: func(c *cli.Context) error {
		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