exec

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: GPL-3.0 Imports: 28 Imported by: 0

README

Exec

Implements execution related commands like execute, execute-shellcode, execute-assembly, etc.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(con *console.SliverClient) []*cobra.Command

Commands returns the “ command and its subcommands.

func ExecuteAssemblyCmd

func ExecuteAssemblyCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

ExecuteAssemblyCmd - Execute a .NET assembly in-memory.

func ExecuteCmd

func ExecuteCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

ExecuteCmd - Run a command on the remote system.

func ExecuteShellcodeCmd

func ExecuteShellcodeCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

ExecuteShellcodeCmd - Execute shellcode in-memory.

func HandleExecuteAssemblyResponse

func HandleExecuteAssemblyResponse(execAssembly *sliverpb.ExecuteAssembly, assemblyPath string, hostName string, cmd *cobra.Command, con *console.SliverClient)

func HandleExecuteResponse

func HandleExecuteResponse(exec *sliverpb.Execute, cmdPath string, hostName string, cmd *cobra.Command, con *console.SliverClient)

func HandleSideloadResponse

func HandleSideloadResponse(sideload *sliverpb.Sideload, binPath string, hostName string, cmd *cobra.Command, con *console.SliverClient)

func HandleSpawnDLLResponse

func HandleSpawnDLLResponse(spawndll *sliverpb.SpawnDll, binPath string, hostName string, cmd *cobra.Command, con *console.SliverClient)

func LootExecute

func LootExecute(commandOutput []byte, lootName string, sliverCmdName string, cmdName string, hostName string, con *console.SliverClient)

func MigrateCmd

func MigrateCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

MigrateCmd - Windows only, inject an implant into another process

func MsfCmd

func MsfCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

MsfCmd - Inject a metasploit payload into the current remote process.

func MsfInjectCmd

func MsfInjectCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

MsfInjectCmd - Inject a metasploit payload into a remote process.

func PrintExecute

func PrintExecute(exec *sliverpb.Execute, cmd *cobra.Command, con *console.SliverClient)

PrintExecute - Print the output of an executed command.

func PrintExecuteShellcode

func PrintExecuteShellcode(task *sliverpb.Task, con *console.SliverClient)

PrintExecuteShellcode - Display result of shellcode execution.

func PrintExecutionOutput

func PrintExecutionOutput(executionOutput string, saveOutput bool, commandName string, hostName string, con *console.SliverClient)

func PrintMsfRemote

func PrintMsfRemote(msfRemote *sliverpb.Task, con *console.SliverClient)

PrintMsfRemote - Print the results of the remote injection attempt.

func PrintSSHCmd

func PrintSSHCmd(sshCmd *sliverpb.SSHCommand, con *console.SliverClient)

PrintSSHCmd - Print the ssh command response.

func PsExecCmd

func PsExecCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

PsExecCmd - psexec command implementation.

func SSHCmd

func SSHCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

SSHCmd - A built-in SSH client command for the remote system (doesn't shell out).

func SaveExecutionOutput

func SaveExecutionOutput(executionOutput string, commandName string, hostName string, con *console.SliverClient)

func SideloadCmd

func SideloadCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

SideloadCmd - Sideload a shared library on the remote system.

func SpawnDllCmd

func SpawnDllCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

SpawnDllCmd - Spawn execution of a DLL on the remote system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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