Versions in this module Expand all Collapse all v0 v0.2.1 Apr 25, 2017 Changes in this version + const BASE + const STACK_BASE + const STACK_SIZE + const UC_MEM_ALIGN + func NewUsercorn(exe string, config *models.Config) (models.Usercorn, error) + type Unicorn struct + Bsz int + func NewUnicorn(arch *models.Arch, os *models.OS, order binary.ByteOrder) (*Unicorn, error) + func (u *Unicorn) Arch() *models.Arch + func (u *Unicorn) Assemble(asm string, addr uint64) ([]byte, error) + func (u *Unicorn) Bits() uint + func (u *Unicorn) ByteOrder() binary.ByteOrder + func (u *Unicorn) Disas(addr, size uint64) (string, error) + func (u *Unicorn) Mappings() []*models.Mmap + func (u *Unicorn) MemMap(addr, size uint64) error + func (u *Unicorn) MemMapProt(addr, size uint64, prot int) error + func (u *Unicorn) MemProtect(addr, size uint64, prot int) error + func (u *Unicorn) MemReserve(addr, size uint64, force bool) (*models.Mmap, error) + func (u *Unicorn) MemUnmap(addr, size uint64) error + func (u *Unicorn) Mmap(addr, size uint64) (*models.Mmap, error) + func (u *Unicorn) MmapWrite(addr uint64, p []byte) (uint64, error) + func (u *Unicorn) OS() string + func (u *Unicorn) PackAddr(buf []byte, n uint64) ([]byte, error) + func (u *Unicorn) Pop() (uint64, error) + func (u *Unicorn) PopBytes(p []byte) error + func (u *Unicorn) Push(n uint64) (uint64, error) + func (u *Unicorn) PushBytes(p []byte) (uint64, error) + func (u *Unicorn) ReadRegs(regs []int) ([]uint64, error) + func (u *Unicorn) RegDump() ([]models.RegVal, error) + func (u *Unicorn) UnpackAddr(buf []byte) uint64 + type Usercorn struct + StackBase uint64 + func NewUsercornRaw(l models.Loader, config *models.Config) (*Usercorn, error) + func (u *Usercorn) Base() uint64 + func (u *Usercorn) BinEntry() uint64 + func (u *Usercorn) Brk(addr uint64) (uint64, error) + func (u *Usercorn) Config() *models.Config + func (u *Usercorn) Entry() uint64 + func (u *Usercorn) Exe() string + func (u *Usercorn) Exit(err error) + func (u *Usercorn) Gate() *models.Gate + func (u *Usercorn) InterpBase() uint64 + func (u *Usercorn) Loader() models.Loader + func (u *Usercorn) Mem() memio.MemIO + func (u *Usercorn) PrefixPath(path string, force bool) string + func (u *Usercorn) Printf(f string, args ...interface{}) + func (u *Usercorn) Println(s interface{}) + func (u *Usercorn) RegisterAddr(f *os.File, addr, size uint64, off int64) + func (u *Usercorn) Run(args []string, env []string) error + func (u *Usercorn) RunShellcode(addr uint64, code []byte, setRegs map[int]uint64, regsClobbered []int) error + func (u *Usercorn) RunShellcodeMapped(mmap *models.Mmap, code []byte, setRegs map[int]uint64, regsClobbered []int) error + func (u *Usercorn) SetEntry(entry uint64) + func (u *Usercorn) SetExit(exit uint64) + func (u *Usercorn) Start(pc, end uint64) error + func (u *Usercorn) StrucAt(addr uint64) *models.StrucStream + func (u *Usercorn) Symbolicate(addr uint64, includeFile bool) (string, error) + func (u *Usercorn) Syscall(num int, name string, getArgs func(n int) ([]uint64, error)) (uint64, error) + func (u *Usercorn) Trampoline(fun func() error) error