Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BPFFilter = &cobra.Command{
Use: "bpf-filter",
Short: "Create a test BPF filter",
}
View Source
var HookedSyscall = &cobra.Command{
Use: "hooked-syscall",
Short: "Trigger a syscall hooked by VulnDevice",
RunE: hookedSyscallCmd,
}
View Source
var KRIETool = &cobra.Command{
Use: "ktool [command] [args]",
}
KRIETool represents the base command of krie-tool
View Source
var Offsets = &cobra.Command{
Use: "offsets",
Short: "Compute a kernel offset from an offset in a System.map file",
RunE: offsetsCmd,
}
View Source
var Start = &cobra.Command{
Use: "start",
Short: "Attach and run the DNS BPF filter",
RunE: startBPFFilterCmd,
}
View Source
var Trigger = &cobra.Command{
Use: "trigger",
Short: "Trigger the vuln_device vulnerability",
RunE: triggerCmd,
}
View Source
var VulnDevice = &cobra.Command{
Use: "vuln-device",
Short: "Interract with the vuln_device kernel module",
}
Functions ¶
This section is empty.
Types ¶
type CLIOptions ¶
type CLIOptions struct { LogLevel logrus.Level // offsets command SystemMapFile string KallsymsSystemMapOffsetSymbol string SystemMapGadgetAddr uint64 ComputeOffsetFromFnArray bool // trigger command VulnDevicePath string }
CLIOptions are the command line options of ssh-probe
type KRIEToolOptionsSanitizer ¶
type KRIEToolOptionsSanitizer struct {
// contains filtered or unexported fields
}
KRIEToolOptionsSanitizer is a generic options sanitizer for KRIE
func NewKRIEToolOptionsSanitizer ¶
func NewKRIEToolOptionsSanitizer(options *CLIOptions, field string) *KRIEToolOptionsSanitizer
NewKRIEToolOptionsSanitizer creates a new instance of KRIEOptionsSanitizer
func (*KRIEToolOptionsSanitizer) Set ¶
func (os *KRIEToolOptionsSanitizer) Set(val string) error
func (*KRIEToolOptionsSanitizer) String ¶
func (os *KRIEToolOptionsSanitizer) String() string
func (*KRIEToolOptionsSanitizer) Type ¶
func (uos *KRIEToolOptionsSanitizer) Type() string
type VulnDeviceInfo ¶
type VulnDeviceInfo struct { MajorNum int `json:"major_num"` FnArrayAddrStr string `json:"@fn_array"` FnArrayAddr uint64 `json:"-"` }
VulnDeviceInfo is the structure used to parse the info string from the vulnerable device
func (VulnDeviceInfo) String ¶
func (info VulnDeviceInfo) String() string
Click to show internal directories.
Click to hide internal directories.