Documentation ¶
Index ¶
- type CurrentHost
- type Finding
- type GroupMember
- type Host
- type NetworkConnection
- type NetworkConnectionState
- type ObjectState
- type Process
- type Report
- type Scenario
- type ScenarioHostScore
- type ScenarioHosts
- type ScenarioSummary
- type ScenarioTimeline
- type ScheduledTask
- type Software
- type State
- type StateSubmission
- type Team
- type TeamScore
- type TeamSummary
- type Template
- type TimestampDocumentAndReceived
- type User
- type WindowsFirewallProfile
- type WindowsFirewallRule
- type WindowsSetting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrentHost ¶
type CurrentHost interface { GetUsers() ([]User, error) GetGroups() (map[string][]GroupMember, error) GetProcesses() ([]Process, error) GetSoftware() ([]Software, error) GetNetworkConnections() ([]NetworkConnection, error) GetScheduledTasks() ([]ScheduledTask, error) GetWindowsFirewallProfiles() ([]WindowsFirewallProfile, error) GetWindowsFirewallRules() ([]WindowsFirewallRule, error) GetWindowsSettings() ([]WindowsSetting, error) Install() CopyFiles() }
type GroupMember ¶
type GroupMember struct { Name string ObjectState ObjectState }
type NetworkConnection ¶
type NetworkConnection struct { Protocol string PID int64 LocalAddress string LocalPort string RemoteAddress string RemotePort string State NetworkConnectionState ObjectState ObjectState }
type NetworkConnectionState ¶
type NetworkConnectionState string
const ( NetworkConnectionClosed NetworkConnectionState = "CLOSED" NetworkConnectionCloseWait NetworkConnectionState = "CLOSE_WAIT" NetworkConnectionClosing NetworkConnectionState = "CLOSING" NetworkConnectionDeleteTcb NetworkConnectionState = "DELETE_TCB" NetworkConnectionEstablished NetworkConnectionState = "ESTABLISHED" NetworkConnectionFinWait1 NetworkConnectionState = "FIN_WAIT1" NetworkConnectionFinWait2 NetworkConnectionState = "FIN_WAIT2" NetworkConnectionLastAck NetworkConnectionState = "LAST_ACK" NetworkConnectionListen NetworkConnectionState = "LISTEN" NetworkConnectionSynReceived NetworkConnectionState = "SYN_RECV" NetworkConnectionSynSent NetworkConnectionState = "SYN_SENT" NetworkConnectionTimeWait NetworkConnectionState = "TIME_WAIT" NetworkConnectionUnconn NetworkConnectionState = "UNCONN" NetworkConnectionUnknown NetworkConnectionState = "UNKNOWN" )
func GetNetworkConnectionState ¶
func GetNetworkConnectionState(stateStr string) NetworkConnectionState
func GetNetworkConnectionStateLinux ¶
func GetNetworkConnectionStateLinux(hex string) NetworkConnectionState
type ObjectState ¶
type ObjectState string
const ( ObjectStateAdd ObjectState = "Add" ObjectStateKeep ObjectState = "Keep" ObjectStateRemove ObjectState = "Remove" )
type Process ¶
type Process struct { ObjectState ObjectState PID int64 User string CommandLine string }
type ScenarioHostScore ¶ added in v0.2.0
type ScenarioHosts ¶
type ScenarioSummary ¶
type ScenarioTimeline ¶
type ScheduledTask ¶ added in v0.6.0
type ScheduledTask struct { Name string Path string Enabled bool ObjectState ObjectState }
type Software ¶
type Software struct { Name string Version string ObjectState ObjectState }
type State ¶
type State struct { Timestamp int64 OS string Hostname string Errors []string Users []User Groups map[string][]GroupMember Processes []Process Software []Software NetworkConnections []NetworkConnection ScheduledTasks []ScheduledTask WindowsFirewallProfiles []WindowsFirewallProfile WindowsFirewallRules []WindowsFirewallRule WindowsSettings []WindowsSetting }
func GetNewStateTemplate ¶
func GetNewStateTemplate() State
type StateSubmission ¶
type TeamSummary ¶
type TimestampDocumentAndReceived ¶ added in v0.4.0
type WindowsFirewallProfile ¶ added in v0.6.0
type WindowsFirewallRule ¶ added in v0.6.0
type WindowsSetting ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.