Documentation ¶
Index ¶
- Constants
- type Kernel
- type System
- func (q System) AsyncCommand(user, cmd string) (err error)
- func (q System) Command(user, cmd string) (output string, err error)
- func (q *System) CopyAndInsmod(localKoPath string) (output string, err error)
- func (q *System) CopyAndRun(user, path string) (output string, err error)
- func (q *System) CopyFile(user, localPath, remotePath string) (err error)
- func (q *System) Debug(conn string)
- func (q *System) GetKASLR() bool
- func (q *System) GetKPTI() bool
- func (q *System) GetSMAP() bool
- func (q *System) GetSMEP() bool
- func (q System) GetSSHCommand() (cmd string)
- func (q *System) SetKASLR(state bool)
- func (q *System) SetKPTI(state bool)
- func (q *System) SetSMAP(state bool)
- func (q *System) SetSMEP(state bool)
- func (q *System) Start() (err error)
- func (q *System) Stop()
Constants ¶
View Source
const ( // X86x64 is the qemu-system-x86_64 X86x64 arch = "x86_64" // X86x32 is the qemu-system-i386 X86x32 = "i386" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type System ¶
type System struct { Cpus int Memory int // Timeout works after Start invocation Timeout time.Duration KilledByTimeout bool KernelPanic bool Died bool Stdout, Stderr []byte // contains filtered or unexported fields }
System describe qemu parameters and executed process
func (System) AsyncCommand ¶
AsyncCommand executes command on qemu system but does not wait for exit
func (*System) CopyAndInsmod ¶
CopyAndInsmod copy kernel module to temporary file on qemu then insmod it
func (*System) CopyAndRun ¶
CopyAndRun is copy local file to qemu vm then run it
func (System) GetSSHCommand ¶
GetSSHCommand returns command for connect to qemu machine over ssh
Click to show internal directories.
Click to hide internal directories.