linux

package
v0.0.0-...-9bff9df Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ARCH_SET_GS = 0x1001
	ARCH_SET_FS = 0x1002
	ARCH_GET_FS = 0x1003
	ARCH_GET_GS = 0x1004
)

Variables

This section is empty.

Functions

func LoadELF

func LoadELF(file *elf.File, emulator interfaces.Emulator)

LoadELF - loads an elf file into the emulator

Types

type StackManager

type StackManager struct {
	// contains filtered or unexported fields
}

StackManager for emulator

func NewStackManager

func NewStackManager(emulator interfaces.Emulator) *StackManager

NewStackManager - create a new instance of the stack manager

func (StackManager) Align

func (s StackManager) Align()

Align - Align the stack pointer

func (StackManager) Map

func (s StackManager) Map()

Map - Map initial stack memory to emulator instance + Auxv

func (StackManager) Push

func (s StackManager) Push(bytes []byte) uint64

Push - push data onto the stack

type SystemCalls

type SystemCalls struct {
	// contains filtered or unexported fields
}

SystemCalls - Handler for syscall

func NewSystemCalls

func NewSystemCalls(emulator interfaces.Emulator) *SystemCalls

NewSystemCalls - Create an instance of the system call handler

func (SystemCalls) HandleCall

func (s SystemCalls) HandleCall()

HandleCall - Handle System Calls

type TypeConversion

type TypeConversion struct {
	// contains filtered or unexported fields
}

TypeConversion - Convert between linux types and go types

func NewTypeConversion

func NewTypeConversion(emulator interfaces.Emulator) *TypeConversion

NewTypeConversion - Create a new instance of the type conversion class

func (TypeConversion) ReadCString

func (t TypeConversion) ReadCString(addr uint64) string

ReadCString - Read a C string from memory

Jump to

Keyboard shortcuts

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