simpleshell

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 8 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
}

func GetClientInstance added in v1.0.8

func GetClientInstance() *Client

func (*Client) CreateFlags added in v1.0.8

func (shellClient *Client) CreateFlags()

func (*Client) Init

func (shellClient *Client) Init(ipAddr string, port int, isClient bool) bool

func (*Client) Run

func (shellClient *Client) Run(timeout int)

type Server

type Server struct {
	Listener net.Listener
}

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) 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(ipAddr string, port int, isClient bool) bool

Validate configuration and create the listening socket.

func (*Server) Run

func (shellServer *Server) Run(timeout int)

Listen for incoming.

Jump to

Keyboard shortcuts

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