Enumerate the users who are currently logged into the system.
DiscoverymacOS
The following command will display sessions that are currently active.
ORCHARD · Tool
The following command will display sessions that are currently active.
The last command can be used to output users who have previously logged in, by specifying the tty interface 'console'.
An attacker can use 'last' with a filter to retrieve the connection date and remote host information for remote logins.