simpleshell

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ConnectAddr string
	ConnectPort int
	// contains filtered or unexported fields
}

func GetClientInstance added in v1.0.8

func GetClientInstance() *Client

func (*Client) Channel added in v1.43.0

func (shellClient *Client) Channel() *channel.Channel

func (*Client) CreateFlags added in v1.0.8

func (shellClient *Client) CreateFlags()

func (*Client) Init

func (shellClient *Client) Init(channel *channel.Channel) bool

func (*Client) Run

func (shellClient *Client) Run(timeout int)

func (*Client) Shutdown added in v1.43.0

func (shellClient *Client) Shutdown() bool

type Server

type Server struct {
	Listener net.Listener
	// contains filtered or unexported fields
}

The SimpleShellServer implements a basic reverse shell catcher. The server listens on a user provided port and catches incoming unencrypted connections. The c2 implements a basic command line that lacks any type of useful bash-like features (history, interactive behavior, displaying of stderr, etc). The server can accept multiple connections, but the user has no way of swapping between them unless the terminate the connection.

func GetServerInstance added in v1.0.8

func GetServerInstance() *Server

A basic singleton interface for the c2.

func (*Server) Channel added in v1.43.0

func (shellServer *Server) Channel() *channel.Channel

Get the underlying C2 channel with metadata and session information.

func (*Server) CreateFlags added in v1.0.8

func (shellServer *Server) CreateFlags()

User options for the simple shell server (currently empty).

func (*Server) Init

func (shellServer *Server) Init(channel *channel.Channel) bool

Validate configuration and create the listening socket.

func (*Server) Run

func (shellServer *Server) Run(timeout int)

Listen for incoming.

func (*Server) Shutdown added in v1.43.0

func (shellServer *Server) Shutdown() bool

Shutdown the C2 and cleanup any active connections.

Jump to

Keyboard shortcuts

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