resh

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cli.Command{
	Category: "Misc",
	Name:     "resh",
	Aliases:  []string{"reshell"},
	Usage:    "Reverse Shell Template Generator",
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:    "ip",
			Aliases: []string{"addr"},
			Usage:   "Your IP Address",
		},
		&cli.IntFlag{
			Name:    "port",
			Aliases: []string{"p"},
			Usage:   "Your Port",
			Value:   1337,
		},
	},
	Action: func(c *cli.Context) (err error) {
		addr := c.String("ip")
		port := c.Int("port")
		if c.NArg() > 0 {
			addr = c.Args().First()
		}
		r, err := ReverseShell(addr, port)
		if err != nil {
			return
		}
		_, err = fmt.Println(r)
		return
	},
}

Functions

func ReverseShell

func ReverseShell(addr string, port int) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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