Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

OSX Gather Autologin Password as Root

Disclosed
N/A
Created
May 30, 2018

Description

This module will steal the plaintext password of any user on the machine
with autologin enabled. Root access is required.

When a user has autologin enabled (System Preferences -> Accounts), OSX
stores their password with an XOR encoding in /private/etc/kcpassword.

Platform

OSX

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use post/osx/gather/autologin_password
msf post(autologin_password) > show actions
...actions...
msf post(autologin_password) > set ACTION < action-name >
msf post(autologin_password) > show options
...show and set options...
msf post(autologin_password) > run

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.