Documentation ¶
Index ¶
- Variables
- func CgcInit(u models.Usercorn, args, env []string) error
- func CgcInterrupt(u models.Usercorn, intno uint32)
- func CgcKernels(u models.Usercorn) []interface{}
- func CgcSyscall(u models.Usercorn)
- func DarwinInit(u models.Usercorn, args, env []string) error
- func DarwinInterrupt(u models.Usercorn, intno uint32)
- func DarwinKernels(u models.Usercorn) []interface{}
- func DarwinSyscall(u models.Usercorn, class int)
- func LinuxInterrupt(u models.Usercorn, intno uint32)
- func LinuxKernels(u models.Usercorn) []interface{}
- func LinuxSyscall(u models.Usercorn)
- type CgcKernel
- func (k *CgcKernel) Allocate(size uint32, executable int32, ret co.Obuf) int
- func (k *CgcKernel) Deallocate(addr, size uint32)
- func (k *CgcKernel) Fdwait(nfds int, reads, writes, timeoutBuf co.Buf, readyFds co.Obuf) int
- func (k *CgcKernel) Literal_terminate(code int)
- func (k *CgcKernel) Random(buf co.Obuf, size uint32, ret co.Obuf)
- func (k *CgcKernel) Receive(fd co.Fd, buf co.Obuf, size co.Len, ret co.Obuf) int
- func (k *CgcKernel) Transmit(fd co.Fd, buf co.Buf, size co.Len, ret co.Obuf) int
- type LinuxKernel
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, }
View Source
var LinuxRegs = []int{uc.X86_REG_EBX, uc.X86_REG_ECX, uc.X86_REG_EDX, uc.X86_REG_ESI, uc.X86_REG_EDI, uc.X86_REG_EBP}
Functions ¶
func CgcInterrupt ¶
func CgcKernels ¶
func CgcSyscall ¶
func DarwinInterrupt ¶
func DarwinKernels ¶
func DarwinSyscall ¶
func LinuxInterrupt ¶
func LinuxKernels ¶
func LinuxSyscall ¶
Types ¶
type CgcKernel ¶
type CgcKernel struct {
*co.KernelBase
}
func (*CgcKernel) Deallocate ¶
func (*CgcKernel) Literal_terminate ¶
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
Click to show internal directories.
Click to hide internal directories.