c2

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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
)

func StringToImpl

func StringToImpl(c2Name string) (Impl, bool)

convert a ServerImpl name to the enum equivalent.

type Interface

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

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

func New

func New(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

Jump to

Keyboard shortcuts

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