ps

package
v0.0.0-...-ff33c78 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(opts ...Option) error

Types

type ExecOption

type ExecOption struct {
	File    string
	Command string
	Admin   bool
}

func NewExecuteInfo

func NewExecuteInfo() *ExecOption

type Image

type Image struct {
	Name     string
	Base     string
	Size     uint32
	Checksum uint32
}

type Option

type Option func(*ExecOption)

func WithAdmin

func WithAdmin() Option

func WithCommand

func WithCommand(cmd string) Option

func WithFilePath

func WithFilePath(file string) Option

type Process

type Process struct {
	Pid       uint32
	Name      string
	Command   string
	FullPath  string
	Cwd       string
	SID       string
	SessionID uint8
	Integrity uint32
	Envs      map[string]string
	Threads   map[uint32]Thread
	Images    []Image
	Parent    *Process
}

type Thread

type Thread struct {
	Tid            uint32
	Pid            uint32
	UserStackBase  string
	UserStackLimit string
	KrnlStackBase  string
	KrnlStackLimit string
	EntryPoint     string
}

Jump to

Keyboard shortcuts

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