agentfuncs

package
v0.0.0-...-7978c3d Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIn

func CheckIn(config *utils.Config) string

A call to get some info in case you wanted to see that

func Download

func Download(path string) string

func ExecuteAssembly

func ExecuteAssembly(assemblyEnc string, params []string) string

func Kill

func Kill(pid int) error

Kill finds a process from a PID and terminates it.

func Ls

func Ls(dir string) string

func PortScanTCP

func PortScanTCP(addr string, targets []int, workers int) string

func Ps

func Ps() string

func SelfInject

func SelfInject(shellcodeHex string) string

TODO: Consider possibly doing that trick to run shellcode from the commandline?

Maybe just do what OffensiveNotion does and make it a dropper?

func Shell

func Shell(cmd []string) string

Execute via system shell so we have access to shell internal commands

func Upload

func Upload(path string, fileb64 string) string

Types

type UnixProcess

type UnixProcess struct {
	UID     int
	User    string
	PID     int
	PPID    int
	Command string
}

Context: The go-sysinfo package only works with Linux and sudo

So we have to scrape /proc

Info on /proc: https://man7.org/linux/man-pages/man5/proc.5.html

Jump to

Keyboard shortcuts

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