githack

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cli.Command{
	Category: "Web",
	Name:     "githack",
	Usage:    "A `.git` folder disclosure exploit",
	Flags: []cli.Flag{
		&cli.Int64Flag{
			Name:    "limit",
			Aliases: []string{"l"},
			Value:   10,
			Usage:   "Request limit",
		},
		&cli.Int64Flag{
			Name:    "delay",
			Aliases: []string{"d"},
			Value:   0,
			Usage:   "Request delay",
		},
		&cli.Int64Flag{
			Name:    "timeout",
			Aliases: []string{"t"},
			Value:   10,
			Usage:   "Request timeout",
		},
	},
	Action: func(c *cli.Context) error {
		if c.NArg() < 1 {
			cli.ShowSubcommandHelp(c)
			return fmt.Errorf("require a target url arg")
		}
		targetURL := c.Args().First()
		if err := utils.ValidArg(targetURL, "url"); err != nil {
			return err
		}
		logger.DebugF("Target url: %s", targetURL)
		return gitHack(targetURL, c.Int64("limit"), c.Int64("delay"), c.Int64("timeout"))
	},
}

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