Documentation
¶
Overview ¶
Package sysinfo collects detailed system information to demonstrate what data info stealers can access on developer machines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStableHostname ¶ added in v0.4.0
GetStableHostname returns a hostname that is stable across network changes. On macOS, it uses scutil --get LocalHostName which returns the user-set ComputerName rather than the DHCP-assigned name. Falls back to os.Hostname().
Types ¶
type ExtendedInfo ¶
type ExtendedInfo struct {
System *SystemInfo `json:"system,omitempty"`
}
ExtendedInfo holds all extended host information
type SystemInfo ¶
type SystemInfo struct {
OSVersion string `json:"os_version,omitempty"`
KernelVersion string `json:"kernel_version,omitempty"`
CPUModel string `json:"cpu_model,omitempty"`
CPUCores int `json:"cpu_cores,omitempty"`
RAMTotalGB float64 `json:"ram_total_gb,omitempty"`
BootTime time.Time `json:"boot_time,omitempty"`
Timezone string `json:"timezone,omitempty"`
}
SystemInfo contains detailed system information
Click to show internal directories.
Click to hide internal directories.