mock

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Usercorn

type Usercorn struct {
	unicorn.Unicorn
}

func (*Usercorn) Arch

func (u *Usercorn) Arch() *models.Arch

func (*Usercorn) Assemble

func (u *Usercorn) Assemble(asm string, addr uint64) ([]byte, error)

func (*Usercorn) Base

func (u *Usercorn) Base() uint64

func (*Usercorn) BinEntry

func (u *Usercorn) BinEntry() uint64

func (*Usercorn) Bits

func (u *Usercorn) Bits() uint

func (*Usercorn) Brk

func (u *Usercorn) Brk(addr uint64) (uint64, error)

func (*Usercorn) ByteOrder

func (u *Usercorn) ByteOrder() binary.ByteOrder

func (*Usercorn) Config

func (u *Usercorn) Config() *models.Config

func (*Usercorn) Disas

func (u *Usercorn) Disas(addr, size uint64) (string, error)

func (*Usercorn) Entry

func (u *Usercorn) Entry() uint64

func (*Usercorn) Exe

func (u *Usercorn) Exe() string

func (*Usercorn) Exit

func (u *Usercorn) Exit(err error)

func (*Usercorn) Gate

func (u *Usercorn) Gate() *models.Gate

func (*Usercorn) InterpBase

func (u *Usercorn) InterpBase() uint64

func (*Usercorn) Loader

func (u *Usercorn) Loader() models.Loader

func (*Usercorn) Mappings

func (u *Usercorn) Mappings() []*models.Mmap

func (*Usercorn) Mem

func (u *Usercorn) Mem() memio.MemIO

func (*Usercorn) MemReserve

func (u *Usercorn) MemReserve(addr, size uint64, force bool) (*models.Mmap, error)

func (*Usercorn) Mmap

func (u *Usercorn) Mmap(addr, size uint64) (*models.Mmap, error)

func (*Usercorn) MmapWrite

func (u *Usercorn) MmapWrite(addr uint64, p []byte) (uint64, error)

func (*Usercorn) OS

func (u *Usercorn) OS() string

func (*Usercorn) PackAddr

func (u *Usercorn) PackAddr(buf []byte, n uint64) ([]byte, error)

func (*Usercorn) Pop

func (u *Usercorn) Pop() (uint64, error)

func (*Usercorn) PopBytes

func (u *Usercorn) PopBytes(p []byte) error

func (*Usercorn) PosixInit

func (u *Usercorn) PosixInit(args, env []string, auxv []byte) error

func (*Usercorn) PrefixPath

func (u *Usercorn) PrefixPath(s string, force bool) string

func (*Usercorn) Printf

func (u *Usercorn) Printf(fmt string, args ...interface{})

func (*Usercorn) Println

func (u *Usercorn) Println(s interface{})

func (*Usercorn) Push

func (u *Usercorn) Push(n uint64) (uint64, error)

func (*Usercorn) PushBytes

func (u *Usercorn) PushBytes(p []byte) (uint64, error)

func (*Usercorn) ReadRegs

func (u *Usercorn) ReadRegs(reg []int) ([]uint64, error)

func (*Usercorn) RegDump

func (u *Usercorn) RegDump() ([]models.RegVal, error)

func (*Usercorn) RegisterAddr

func (u *Usercorn) RegisterAddr(f *os.File, start, end uint64, off int64)

func (*Usercorn) Run

func (u *Usercorn) Run(args, env []string) error

func (*Usercorn) RunShellcode

func (u *Usercorn) RunShellcode(addr uint64, code []byte, setRegs map[int]uint64, regsClobbered []int) error

func (*Usercorn) RunShellcodeMapped

func (u *Usercorn) RunShellcodeMapped(mmap *models.Mmap, code []byte, setRegs map[int]uint64, regsClobbered []int) error

func (*Usercorn) SetEntry

func (u *Usercorn) SetEntry(entry uint64)

func (*Usercorn) SetExit

func (u *Usercorn) SetExit(exit uint64)

func (*Usercorn) StrucAt

func (u *Usercorn) StrucAt(addr uint64) *models.StrucStream

func (*Usercorn) Symbolicate

func (u *Usercorn) Symbolicate(addr uint64, includeFile bool) (string, error)

func (*Usercorn) Syscall

func (u *Usercorn) Syscall(num int, name string, getArgs func(n int) ([]uint64, error)) (uint64, error)

func (*Usercorn) Trampoline

func (u *Usercorn) Trampoline(func() error) error

func (*Usercorn) UnpackAddr

func (u *Usercorn) UnpackAddr(buf []byte) uint64

Jump to

Keyboard shortcuts

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