task

package
v0.0.0-...-51e328c Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TASK_ASSEMBLY      = 0x01
	TASK_CAT           = 0x02
	TASK_CD            = 0x03
	TASK_CMD           = 0x04
	TASK_CONNECT       = 0x05
	TASK_CP            = 0x06
	TASK_DISABLE_AV    = 0x07
	TASK_DLL           = 0x08
	TASK_DOWNLOAD      = 0x09
	TASK_ENV_LS        = 0x10
	TASK_FIND          = 0x11
	TASK_GROUP_ADD     = 0x12
	TASK_GROUP_ADDUSER = 0x13
	TASK_GROUP_LS      = 0x14
	TASK_GROUP_RM      = 0x15
	TASK_GROUP_RMUSER  = 0x16
	TASK_GROUP_USERS   = 0x17
	TASK_HASHDUMP      = 0x18
	TASK_HISTORY       = 0x19
	TASK_IP            = 0x20
	TASK_JITTER        = 0x21
	TASK_KEYLOG        = 0x22
	TASK_KILL          = 0x23
	TASK_KILLDATE      = 0x24
	TASK_LS            = 0x25
	TASK_MIGRATE       = 0x26
	TASK_MKDIR         = 0x27
	TASK_MV            = 0x28
	TASK_NET           = 0x29
	TASK_PE            = 0x30
	TASK_PERSIST       = 0x31
	TASK_PROCDUMP      = 0x32
	TASK_PS_KILL       = 0x33
	TASK_PS_LS         = 0x34
	TASK_PWD           = 0x35
	TASK_REG_QUERY     = 0x36
	TASK_RM            = 0x37
	TASK_RPORTFWD_ADD  = 0x38
	TASK_RPORTFWD_LS   = 0x39
	TASK_RPORTFWD_RM   = 0x40
	TASK_RUNAS         = 0x41
	TASK_SCREENSHOT    = 0x42
	TASK_SHELLCODE     = 0x43
	TASK_SLEEP         = 0x44
	TASK_SYSINFO       = 0x45
	TASK_TOKEN_REVERT  = 0x46
	TASK_TOKEN_STEAL   = 0x47
	TASK_UAC           = 0x48
	TASK_UPLOAD        = 0x49
	TASK_USER_ADD      = 0x50
	TASK_USER_LS       = 0x51
	TASK_USER_RM       = 0x52
	TASK_WHOAMI        = 0x53
	TASK_WHOAMI_PRIV   = 0x54
)

TASK CODE *sync this with the code in 'payload/win/implant/include/core/task.hpp'

Variables

This section is empty.

Functions

func FormatTaskFromJsonStr

func FormatTaskFromJsonStr(taskJSONStr string) (string, error)

The function is used for pretty print when 'task' and 'loot' commands.

func GetTaskCode

func GetTaskCode(task string) (int, error)

Types

type Command

type Command struct {
	Name string `json:"name"`
	Code int    `json:"code"`
}

type Task

type Task struct {
	Command Command           `json:"command"`
	Args    map[string]string `json:"args"`
}

func NewTask

func NewTask(taskName string, args map[string]string) (*Task, error)

func (*Task) Encode

func (t *Task) Encode() (string, error)

type TaskResult

type TaskResult struct {
	Task   Task   `json:"task"`
	Result string `json:"result"`
}

Jump to

Keyboard shortcuts

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