← All Binaries

sysctl

Gets the macOS hardware information, which can be used to determine whether the target macOS host is running on a physical or virtual machine.

Author: Cedric Owens (@cedowens) Created: 2023-04-20

Paths

/usr/sbin/sysctl

Example Use Cases

Use sysctl to gather macOS hardware info.

sysctl can be used to gather interesting macOS host data, including hardware information, memory size, logical cpu information, etc.

sysctl -n hw.model

Detections

Resources