Documentation
¶
Index ¶
- Constants
- Variables
- func AddHelper(name string, helper *mals.Helper) error
- func GetResult(rpc clientrpc.MaliceRPCClient, task *clientpb.Task, index int32) (*clientpb.TaskContext, error)
- func NewBinary(module string, path string, args []string, out bool, timeout uint32, ...) (*implantpb.ExecuteBinary, error)
- func NewBinaryData(module string, path string, data string, out bool, timeout uint32, arch string, ...) (*implantpb.ExecuteBinary, error)
- func NewBypassAll() map[string]string
- func NewExecutable(module string, path string, args []string, arch string, ...) (*implantpb.ExecuteBinary, error)
- func NewSacrificeProcessMessage(ppid uint32, hidden, block_dll, bypassETW bool, argue string) (*implantpb.SacrificeProcess, error)
- func ParseBinaryResponse(spite *implantpb.Spite) (string, error)
- func ParseStatus(spite *implantpb.Spite) (bool, error)
- func PrintTask(task *clientpb.TaskContext) (*implantpb.Spite, error)
- func RegisterBuiltin(rpc clientrpc.MaliceRPCClient)
- func RegisterCustomBuiltin(rpc clientrpc.MaliceRPCClient)
- func RegisterEncodeFunc(rpc clientrpc.MaliceRPCClient)
- func RegisterFunction(name string, fn interface{})
- func RegisterInternalDoneCallback(name string, callback ImplantCallback) error
- func RegisterInternalFunc(pkg, name string, fn *mals.MalFunction, callback ImplantCallback) error
- func WaitResult(rpc clientrpc.MaliceRPCClient, task *clientpb.Task) (*clientpb.TaskContext, error)
- func WrapFunctionReturn(fn interface{}) func(args ...interface{}) (interface{}, error)
- type BuiltinCallback
- type EventCondition
- type ImplantCallback
- type InternalFunc
- type OnEventFunc
Constants ¶
View Source
const ( EncodeGroup = "encode" ArtifactGroup = "artifact" ListenerGroup = "listener" ClientGroup = "client" )
View Source
const ( BeaconPackage = "beacon" RpcPackage = "rpc" ArmoryPackage = "armory" BuiltinPackage = "builtin" )
lua package
Variables ¶
View Source
var ( ErrFunctionNotFound = errors.New("function not found") WarnArgsMismatch = errors.New("arguments mismatch") WarnReturnMismatch = errors.New("return values mismatch") )
View Source
var InternalFunctions = make(internalFuncs)
Functions ¶
func GetResult ¶
func GetResult(rpc clientrpc.MaliceRPCClient, task *clientpb.Task, index int32) (*clientpb.TaskContext, error)
func NewBinaryData ¶
func NewBypassAll ¶ added in v0.1.1
func NewExecutable ¶
func NewExecutable(module string, path string, args []string, arch string, sac *implantpb.SacrificeProcess) (*implantpb.ExecuteBinary, error)
func RegisterBuiltin ¶
func RegisterBuiltin(rpc clientrpc.MaliceRPCClient)
func RegisterCustomBuiltin ¶
func RegisterCustomBuiltin(rpc clientrpc.MaliceRPCClient)
func RegisterEncodeFunc ¶
func RegisterEncodeFunc(rpc clientrpc.MaliceRPCClient)
func RegisterFunction ¶
func RegisterFunction(name string, fn interface{})
func RegisterInternalDoneCallback ¶
func RegisterInternalDoneCallback(name string, callback ImplantCallback) error
func RegisterInternalFunc ¶
func RegisterInternalFunc(pkg, name string, fn *mals.MalFunction, callback ImplantCallback) error
RegisterInternalFunc 注册并生成 Lua 定义文件
func WaitResult ¶
func WaitResult(rpc clientrpc.MaliceRPCClient, task *clientpb.Task) (*clientpb.TaskContext, error)
func WrapFunctionReturn ¶
func WrapFunctionReturn(fn interface{}) func(args ...interface{}) (interface{}, error)
Types ¶
type BuiltinCallback ¶
type BuiltinCallback func(content interface{}) (interface{}, error)
type EventCondition ¶
type ImplantCallback ¶
type ImplantCallback func(content *clientpb.TaskContext) (string, error)
callback to callee, like lua or go, return string
type InternalFunc ¶
type InternalFunc struct {
*mals.MalFunction
FinishCallback ImplantCallback // implant callback
DoneCallback ImplantCallback
}
Click to show internal directories.
Click to hide internal directories.