c2

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFlags added in v1.0.8

func CreateFlags(c2Impl Impl)

call into the c2 impl so that it can create command line flags.

func ImplToString

func ImplToString(c2Name Impl) (string, bool)

convert a ServerImpl enum to the string equivalent.

Types

type Impl

type Impl int
const (
	SimpleShellServer Impl = 0
	SimpleShellClient Impl = 1
	SSLShellServer    Impl = 2
	HTTPServeFile     Impl = 3
	HTTPServeShell    Impl = 4
)

func StringToImpl

func StringToImpl(c2Name string) (Impl, bool)

convert a ServerImpl name to the enum equivalent.

type Interface

type Interface interface {
	CreateFlags()
	Init(ipAddr string, port int, isClient bool) bool
	Run(timeout int)
}

A generic interface used by both reverse shells, bind shells, and stagers.

func GetInstance added in v1.0.8

func GetInstance(c2Impl Impl) (Interface, bool)

factory pattern for creating c2 interfaces. Note that this is returning an interface, which is a bit anti-Go but it's more or less exactly what we want so.

Directories

Path Synopsis
httpservefile c2 spawns an HTTP or HTTPS server and hosts arbitrary user-provided files.
httpservefile c2 spawns an HTTP or HTTPS server and hosts arbitrary user-provided files.
httpservershell is (literally) a combination of HTTPServeFile and (SSLShell || SimpleShellServer).
httpservershell is (literally) a combination of HTTPServeFile and (SSLShell || SimpleShellServer).
sslshell is a simple c2 that listens for incoming ssl/tls connections in order to establish a reverse shell.
sslshell is a simple c2 that listens for incoming ssl/tls connections in order to establish a reverse shell.

Jump to

Keyboard shortcuts

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