exec

package
v0.0.0-...-9712a8c Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fexecve

func Fexecve(fd uintptr, argv []string, envv []string) (err error)

Exec binary file using file descriptor Note: syscall.Exec does not return on success, it causes the current process to be replaced by the one executed

func FexecveDaemon

func FexecveDaemon(fd uintptr, argv []string, envv []string) (err error)

FexecveDaemon: Exec binary file using file descriptor. The program is a daemon (setsid). No input, or output

func Filelessxec

func Filelessxec(cfg *config.Config)

Exec a file witth filess-xec

func PrepareStealthExec

func PrepareStealthExec(content string) (mfd *memfd.Memfd)

Create a memfd with binary content and return it

func UnstealthyExec

func UnstealthyExec(filename string, argv []string, envv []string) (err error)

UnstealthyExec file retrieve output

func WriteBinaryFile

func WriteBinaryFile(filename string, content string) (err error)

Write Binary file on disk and chmod it to make it executable

Types

This section is empty.

Jump to

Keyboard shortcuts

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