systract

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2019 License: MIT Imports: 14 Imported by: 2

Documentation

Overview

Package systract provides libraries to extract syscalls from go applications programmatically.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DumpReader

type DumpReader struct {
	// contains filtered or unexported fields
}

DumpReader represents a go disassembled files reader

func NewDumpReader

func NewDumpReader(dumpFilePath string) *DumpReader

NewDumpReader initialises a new DumpReader

func (*DumpReader) GetReader

func (d *DumpReader) GetReader() (io.ReadCloser, error)

GetReader returns a io.Reader based of the filePath

type ExeReader

type ExeReader struct {
	// contains filtered or unexported fields
}

ExeReader represents a go executables reader. Internally it will call go tool objdump in order to get a disassembled dump of the file.

func NewExeReader

func NewExeReader(exeFilePath string) *ExeReader

NewExeReader initialises a new ExeReader

func (*ExeReader) GetReader

func (e *ExeReader) GetReader() (io.ReadCloser, error)

GetReader returns a io.ReadCloser based of the filePath

type SourceReader

type SourceReader interface {
	GetReader() (io.ReadCloser, error)
}

SourceReader defines the interface for source readers

type SystemCall

type SystemCall struct {
	ID   uint16
	Name string
}

SystemCall represents a system call

func Extract

func Extract(source SourceReader) ([]SystemCall, error)

Extract returns all system calls made in the execution path of the dumpFile provided.

Jump to

Keyboard shortcuts

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