Documentation ¶
Index ¶
- Variables
- func ComputeHashes(file string) (md5sum, sha256sum string, err error)
- func FormatMemorySegmentAddress(seg *MemorySegmentInfo) string
- func FormatPID(pid int) string
- func GetRunningPIDs() ([]int, error)
- func StateNames() []string
- func TypeNames() []string
- type CachingProcess
- type DefaultMemoryReaderFactory
- type MemoryReader
- type MemoryReaderFactory
- type MemorySegmentInfo
- type Permissions
- type Process
- type ProcessInfo
- type State
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrProcIsParent = errors.New("not supported on parent")
View Source
var ErrProcIsSelf = errors.New("not supported on self")
View Source
var PermR = Permissions{ Read: true, }
View Source
var PermRC = Permissions{ Read: true, Write: true, COW: true, }
View Source
var PermRCX = Permissions{ Read: true, Write: true, COW: true, Execute: true, }
View Source
var PermRW = Permissions{ Read: true, Write: true, }
View Source
var PermRWX = Permissions{ Read: true, Write: true, Execute: true, }
View Source
var PermRX = Permissions{ Read: true, Execute: true, }
Functions ¶
func ComputeHashes ¶
func FormatMemorySegmentAddress ¶
func FormatMemorySegmentAddress(seg *MemorySegmentInfo) string
func GetRunningPIDs ¶
func StateNames ¶
func StateNames() []string
StateNames returns a list of possible string values of State.
Types ¶
type CachingProcess ¶
type CachingProcess interface { Process InvalidateCache() }
func OpenProcess ¶
func OpenProcess(pid int) (CachingProcess, error)
type DefaultMemoryReaderFactory ¶ added in v0.4.0
type DefaultMemoryReaderFactory struct{}
func (*DefaultMemoryReaderFactory) NewMemoryReader ¶ added in v0.4.0
func (f *DefaultMemoryReaderFactory) NewMemoryReader(proc Process, seg *MemorySegmentInfo) (MemoryReader, error)
type MemoryReader ¶
type MemoryReader interface { io.ReadCloser Reset() (MemoryReader, error) }
func NewMemoryReader ¶
func NewMemoryReader(proc Process, seg *MemorySegmentInfo) (MemoryReader, error)
type MemoryReaderFactory ¶ added in v0.4.0
type MemoryReaderFactory interface {
NewMemoryReader(proc Process, seg *MemorySegmentInfo) (MemoryReader, error)
}
type MemorySegmentInfo ¶
type MemorySegmentInfo struct { // On windows: _MEMORY_BASIC_INFORMATION->AllocationBase ParentBaseAddress uintptr `json:"parentBaseAddress"` // On windows: _MEMORY_BASIC_INFORMATION->BaseAddress BaseAddress uintptr `json:"baseAddress"` // On windows: _MEMORY_BASIC_INFORMATION->AllocationProtect AllocatedPermissions Permissions `json:"allocatedPermissions"` // On windows: _MEMORY_BASIC_INFORMATION->Protect CurrentPermissions Permissions `json:"currentPermissions"` // On windows: _MEMORY_BASIC_INFORMATION->RegionSize Size uintptr `json:"size"` // On windows: _MEMORY_BASIC_INFORMATION->State State State `json:"state"` // On windows: _MEMORY_BASIC_INFORMATION->Type Type Type `json:"type"` FilePath string `json:"filePath"` SubSegments []*MemorySegmentInfo `json:"subSegments"` }
func (*MemorySegmentInfo) CopyWithoutSubSegments ¶
func (s *MemorySegmentInfo) CopyWithoutSubSegments() *MemorySegmentInfo
func (*MemorySegmentInfo) String ¶
func (s *MemorySegmentInfo) String() string
type Permissions ¶
type Permissions struct { // Is read-only access allowed Read bool // Is write access allowed (also true if COW is enabled) Write bool // Is copy-on-write access allowed (if this is true, then so is Write) COW bool // Is execute access allowed Execute bool }
func ParsePermissions ¶
func ParsePermissions(s string) (Permissions, error)
func (Permissions) EqualTo ¶
func (p Permissions) EqualTo(other Permissions) bool
func (Permissions) IsMoreOrEquallyPermissiveThan ¶
func (p Permissions) IsMoreOrEquallyPermissiveThan(other Permissions) bool
func (Permissions) IsMorePermissiveThan ¶
func (p Permissions) IsMorePermissiveThan(other Permissions) bool
func (Permissions) String ¶
func (p Permissions) String() string
type ProcessInfo ¶
type ProcessInfo struct { PID int `json:"pid"` Bitness arch.Bitness `json:"bitness"` ExecutablePath string `json:"executablePath"` ExecutableMD5 string `json:"executableMD5"` ExecutableSHA256 string `json:"executableSHA256"` Username string `json:"username"` MemorySegments []*MemorySegmentInfo `json:"memorySegments"` }
type State ¶
type State int
ENUM( Commit Free Reserve )
func ParseState ¶
ParseState attempts to convert a string to a State
func (State) MarshalText ¶
MarshalText implements the text marshaller method
func (*State) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method
type Type ¶
type Type int
TODO: Consider additional type "Shared"
ENUM( Image Mapped Private )
func (Type) MarshalText ¶
MarshalText implements the text marshaller method
func (*Type) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package customWin32 provides a small subset of win32 bindings.
|
Package customWin32 provides a small subset of win32 bindings. |
Click to show internal directories.
Click to hide internal directories.