libinject

package
v0.0.0-...-75a46ef Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(task structs.Task)

Types

type Arguments

type Arguments struct {
	PID         int    `json:"pid"`
	LibraryPath string `json:"library"`
}

type Injection

type Injection interface {
	TargetPid() int
	Shellcode() []byte
	Success() bool
	SharedLib() string
}

Inject C source taken from: http://www.newosxbook.com/src.jl?tree=listings&file=inject.c

type LinuxInjection

type LinuxInjection struct {
	Target      int
	Successful  bool
	Payload     []byte
	LibraryPath string
}

func (*LinuxInjection) SharedLib

func (l *LinuxInjection) SharedLib() string

func (*LinuxInjection) Shellcode

func (l *LinuxInjection) Shellcode() []byte

func (*LinuxInjection) Success

func (l *LinuxInjection) Success() bool

func (*LinuxInjection) TargetPid

func (l *LinuxInjection) TargetPid() int

Jump to

Keyboard shortcuts

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