Documentation
¶
Index ¶
- func Assemble(assembly string, arch Arch) ([]byte, error)
- func AssembleAMD64(assembly string) ([]byte, error)
- func AssembleI386(assembly string) ([]byte, error)
- func Base64D(s string) ([]byte, error)
- func Base64E(b []byte) string
- func Cyclic(length int, optFns ...func(o *CyclicOptions)) []byte
- func CyclicFind(subseq []byte, optFns ...func(o *CyclicOptions)) int
- func Disam(data []byte, vma uint64, arch Arch) (string, error)
- func DisamAMD64(data []byte, vma uint64) (string, error)
- func DisamI386(data []byte, vma uint64) (string, error)
- func Download(url, filename string, optFns ...func(o *HTTPClientOptions)) error
- func HTTPGet(url string, optFns ...func(o *HTTPClientOptions)) ([]byte, error)
- func Hex(src []byte) []byte
- func HexString(src []byte) string
- func MD5File(path string) string
- func MD5Sum(b []byte) string
- func NewEnv(arch Arch, endian Endian, optFns ...func(o *ENVOptions)) (*env, error)
- func NewEnvFromBinary(path string, optFns ...func(o *ENVOptions)) (*env, error)
- func NewListener(addr string) (*tube.Listener, error)
- func NewProcess(argv []string, optFns ...func(o *tube.ProcessOptions)) (*tube.Process, error)
- func NewRemote(network, addr string) (*tube.Remote, error)
- func P16B(i uint16) []byte
- func P16L(i uint16) []byte
- func P32B(i uint32) []byte
- func P32L(i uint32) []byte
- func P64B(i uint64) []byte
- func P64L(i uint64) []byte
- func ROT13(s string) string
- func Sha1File(path string) string
- func Sha1Sum(b []byte) string
- func Sha224File(path string) string
- func Sha224Sum(b []byte) string
- func Sha256File(path string) string
- func Sha256Sum(b []byte) string
- func Sha384File(path string) string
- func Sha384Sum(b []byte) string
- func Sha512File(path string) string
- func Sha512Sum(b []byte) string
- func U16B(b []byte) uint16
- func U16L(b []byte) uint16
- func U32B(b []byte) uint32
- func U32L(b []byte) uint32
- func U64B(b []byte) uint64
- func U64L(b []byte) uint64
- func UnHex(src []byte) ([]byte, error)
- func UnHexString(src string) ([]byte, error)
- type Arch
- type Assembler
- type BinaryReader
- type Bintype
- type Cave
- type CyclicOptions
- type Disassembler
- type ELF
- func (e *ELF) Address(offset uint64) (uint64, error)
- func (e *ELF) Architecture() Arch
- func (e *ELF) Canary() bool
- func (e *ELF) Caves(caveSize int) []Cave
- func (e *ELF) Checksec() string
- func (e *ELF) Close() error
- func (e *ELF) DumpHeader()
- func (e *ELF) Endianness() Endian
- func (e *ELF) NX() bool
- func (e *ELF) Offset(addr uint64) (uint64, error)
- func (e *ELF) PIE() bool
- func (f *ELF) Read(addr uint64, n int) ([]byte, error)
- func (f *ELF) Save(filePath string, fileMode os.FileMode) error
- func (e *ELF) Strings(optFns ...func(o *StringsOptions)) []string
- func (f *ELF) Write(data []byte, addr uint64) error
- type ENVOptions
- type Endian
- type GadgetType
- type HTTPClientOptions
- type MACHO
- type PE
- type StringsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssembleAMD64 ¶ added in v0.0.8
func AssembleI386 ¶ added in v0.0.7
func Cyclic ¶
func Cyclic(length int, optFns ...func(o *CyclicOptions)) []byte
func CyclicFind ¶
func CyclicFind(subseq []byte, optFns ...func(o *CyclicOptions)) int
func Download ¶ added in v0.0.4
func Download(url, filename string, optFns ...func(o *HTTPClientOptions)) error
func HTTPGet ¶ added in v0.0.4
func HTTPGet(url string, optFns ...func(o *HTTPClientOptions)) ([]byte, error)
func NewEnv ¶ added in v0.0.7
func NewEnv(arch Arch, endian Endian, optFns ...func(o *ENVOptions)) (*env, error)
func NewEnvFromBinary ¶ added in v0.0.7
func NewEnvFromBinary(path string, optFns ...func(o *ENVOptions)) (*env, error)
func NewProcess ¶ added in v0.0.7
func UnHexString ¶ added in v0.0.7
UnHexString decodes the hexadecimal string into representative bytes.
Types ¶
type Assembler ¶ added in v0.0.7
type Assembler struct {
// contains filtered or unexported fields
}
func NewAssembler ¶ added in v0.0.7
type BinaryReader ¶ added in v0.0.7
type Cave ¶ added in v0.0.7
type CyclicOptions ¶
type Disassembler ¶ added in v0.0.7
type Disassembler struct {
// contains filtered or unexported fields
}
func NewDisassembler ¶ added in v0.0.7
func NewDisassembler(arch Arch) (*Disassembler, error)
func (*Disassembler) Close ¶ added in v0.0.7
func (d *Disassembler) Close() error
type ELF ¶
type ELF struct {
// contains filtered or unexported fields
}
func NewELFFromBytes ¶ added in v0.0.7
func NewELFFromReader ¶ added in v0.0.7
func NewELFFromReader(r BinaryReader) (*ELF, error)
func (*ELF) Address ¶ added in v0.0.7
Address determines the virtual address for the specified file offset
func (*ELF) Architecture ¶ added in v0.0.7
func (*ELF) Canary ¶ added in v0.0.6
Canary checks whether the current binary is using stack canaries
func (*ELF) DumpHeader ¶ added in v0.0.7
func (e *ELF) DumpHeader()
func (*ELF) Endianness ¶ added in v0.0.7
func (*ELF) Read ¶ added in v0.0.7
Read reads up to n bytes from the raw data at the specified virtual address
func (*ELF) Strings ¶ added in v0.0.8
func (e *ELF) Strings(optFns ...func(o *StringsOptions)) []string
type ENVOptions ¶ added in v0.0.7
type ENVOptions struct {
CyclicOptions
}
type GadgetType ¶ added in v0.0.8
type GadgetType int
const ( GADGET_TYPE_ROP GadgetType = iota GADGET_TYPE_JOP GADGET_TYPE_SYS )
type HTTPClientOptions ¶ added in v0.0.4
type MACHO ¶ added in v0.0.7
type MACHO struct {
// contains filtered or unexported fields
}
func NewMACHOFromBytes ¶ added in v0.0.7
func NewMACHOFromReader ¶ added in v0.0.7
func NewMACHOFromReader(r BinaryReader) (*MACHO, error)
func (*MACHO) Strings ¶ added in v0.0.8
func (m *MACHO) Strings(optFns ...func(o *StringsOptions)) []string
type PE ¶ added in v0.0.6
type PE struct {
// contains filtered or unexported fields
}
func NewPEFromBytes ¶ added in v0.0.7
func NewPEFromReader ¶ added in v0.0.7
func NewPEFromReader(r BinaryReader) (*PE, error)
func (*PE) Strings ¶ added in v0.0.8
func (p *PE) Strings(optFns ...func(o *StringsOptions)) []string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.