Versions in this module Expand all Collapse all v0 v0.1.0 Dec 30, 2020 Changes in this version + const ArchAARCH64 + const ArchARM + const ArchI386 + const ArchIA64 + const ArchMIPS + const ArchPPC + const ArchX8664 + const ELFFile + const PEFile + const UnknownFile + func Asm(processor *Processor, code string) ([]byte, error) + func Disasm(address uint64, code []byte, processor *Processor) (string, error) + func PackUint16BE(i uint16) []byte + func PackUint16LE(i uint16) []byte + func PackUint32BE(i uint32) []byte + func PackUint32LE(i uint32) []byte + func PackUint64BE(i uint64) []byte + func PackUint64LE(i uint64) []byte + func UnpackUint16BE(b []byte) uint16 + func UnpackUint16LE(b []byte) uint16 + func UnpackUint32BE(b []byte) uint32 + func UnpackUint32LE(b []byte) uint32 + func UnpackUint64BE(b []byte) uint64 + func UnpackUint64LE(b []byte) uint64 + type Architecture uint16 + type ELF struct + E *elf.File + Mitigations *Mitigations + PIE bool + Processor *Processor + func NewELF(filename string) (*ELF, error) + func (e *ELF) BSS(offset uint64) (uint64, error) + func (e *ELF) Disasm(address uint64, nBytes int) (string, error) + func (e *ELF) GetOpcodeVAddrs(signature []byte) ([]uint64, error) + func (e *ELF) GetSignatureVAddrs(signature []byte) ([]uint64, error) + func (e *ELF) OffsetToAddr(offset uint64) (uint64, error) + func (e *ELF) ROP() (*ROP, error) + func (e *ELF) Read(address uint64, nBytes int) ([]byte, error) + func (e *ELF) Read16BE(address uint64) (uint16, error) + func (e *ELF) Read16LE(address uint64) (uint16, error) + func (e *ELF) Read32BE(address uint64) (uint32, error) + func (e *ELF) Read32LE(address uint64) (uint32, error) + func (e *ELF) Read64BE(address uint64) (uint64, error) + func (e *ELF) Read64LE(address uint64) (uint64, error) + func (e *ELF) Read8(address uint64) (uint8, error) + type Endian int + const BigEndian + const LittleEndian + func (e Endian) String() string + type FileFormat uint16 + type Gadget struct + Address uint64 + Instrs string + Opcode []byte + type Mitigations struct + Canary bool + NX bool + type Processor struct + Architecture Architecture + Endian Endian + type ROP []*Gadget + func (r *ROP) Dump() + func (r *ROP) InstrSearch(regex string) (ROP, error) + type Remote struct + C net.Conn + Host string + HostPort string + Port uint16 + func NewRemote(protocol string, hostPort string) (*Remote, error) + func (r *Remote) Close() + func (r *Remote) Interactive() error + func (r *Remote) RecvLine() ([]byte, error) + func (r *Remote) RecvN(n int) ([]byte, error) + func (r *Remote) RecvUntil(needle []byte, drop bool) ([]byte, error) + func (r *Remote) Send(data []byte) (int, error) + func (r *Remote) SendLine(line []byte) (int, error)