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 ¶
NewExeReader initialises a new ExeReader
type SourceReader ¶
type SourceReader interface {
GetReader() (io.ReadCloser, error)
}
SourceReader defines the interface for source readers
type SystemCall ¶
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.
Click to show internal directories.
Click to hide internal directories.