x86

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: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Arch = &models.Arch{
	Bits:    32,
	Radare:  "x86",
	CS_ARCH: cs.CS_ARCH_X86,
	CS_MODE: cs.CS_MODE_32,
	KS_ARCH: ks.ARCH_X86,
	KS_MODE: ks.MODE_32,
	UC_ARCH: uc.ARCH_X86,
	UC_MODE: uc.MODE_32,
	PC:      uc.X86_REG_EIP,
	SP:      uc.X86_REG_ESP,
	Regs: map[string]int{
		"eip": uc.X86_REG_EIP,
		"esp": uc.X86_REG_ESP,
		"ebp": uc.X86_REG_EBP,
		"eax": uc.X86_REG_EAX,
		"ebx": uc.X86_REG_EBX,
		"ecx": uc.X86_REG_ECX,
		"edx": uc.X86_REG_EDX,
		"esi": uc.X86_REG_ESI,
		"edi": uc.X86_REG_EDI,

		"eflags": uc.X86_REG_EFLAGS,

		"cs": uc.X86_REG_CS,
		"ds": uc.X86_REG_DS,
		"es": uc.X86_REG_ES,
		"fs": uc.X86_REG_FS,
		"gs": uc.X86_REG_GS,
		"ss": uc.X86_REG_SS,
	},
	DefaultRegs: []string{
		"eax", "ebx", "ecx", "edx", "esi", "edi", "ebp",
	},
	GdbXml: gdbXml,
}

Functions

func CgcInit

func CgcInit(u models.Usercorn, args, env []string) error

func CgcInterrupt

func CgcInterrupt(u models.Usercorn, intno uint32)

func CgcKernels

func CgcKernels(u models.Usercorn) []interface{}

func CgcSyscall

func CgcSyscall(u models.Usercorn)

func DarwinInit

func DarwinInit(u models.Usercorn, args, env []string) error

func DarwinInterrupt

func DarwinInterrupt(u models.Usercorn, intno uint32)

func DarwinKernels

func DarwinKernels(u models.Usercorn) []interface{}

func DarwinSyscall

func DarwinSyscall(u models.Usercorn, class int)

func LinuxInterrupt

func LinuxInterrupt(u models.Usercorn, intno uint32)

func LinuxKernels

func LinuxKernels(u models.Usercorn) []interface{}

func LinuxSyscall

func LinuxSyscall(u models.Usercorn)

Types

type CgcKernel

type CgcKernel struct {
	*co.KernelBase
}

func (*CgcKernel) Allocate

func (k *CgcKernel) Allocate(size uint32, executable int32, ret co.Obuf) int

func (*CgcKernel) Deallocate

func (k *CgcKernel) Deallocate(addr, size uint32)

func (*CgcKernel) Fdwait

func (k *CgcKernel) Fdwait(nfds int, reads, writes, timeoutBuf co.Buf, readyFds co.Obuf) int

func (*CgcKernel) Literal_terminate

func (k *CgcKernel) Literal_terminate(code int)

func (*CgcKernel) Random

func (k *CgcKernel) Random(buf co.Obuf, size uint32, ret co.Obuf)

func (*CgcKernel) Receive

func (k *CgcKernel) Receive(fd co.Fd, buf co.Obuf, size co.Len, ret co.Obuf) int

func (*CgcKernel) Transmit

func (k *CgcKernel) Transmit(fd co.Fd, buf co.Buf, size co.Len, ret co.Obuf) int

type LinuxKernel

type LinuxKernel struct {
	*linux.LinuxKernel
	// contains filtered or unexported fields
}

func (*LinuxKernel) SetThreadArea

func (k *LinuxKernel) SetThreadArea(addr uint64) int

func (*LinuxKernel) Socketcall

func (k *LinuxKernel) Socketcall(index int, params co.Buf) uint64

Jump to

Keyboard shortcuts

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