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

module

OSX Gather Safari LastSession.plist

Disclosed
N/A
Created
May 30, 2018

Description

This module downloads the LastSession.plist file from the target machine.
LastSession.plist is used by Safari to track active websites in the current session,
and sometimes contains sensitive information such as usernames and passwords.

This module will first download the original LastSession.plist, and then attempt
to find the credential for Gmail. The Gmail's last session state may contain the
user's credential if his/her first login attempt failed (likely due to a typo),
and then the page got refreshed or another login attempt was made. This also means
the stolen credential might contain typos.

Author

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/safari_lastsession
msf post(safari_lastsession) > show actions
...actions...
msf post(safari_lastsession) > set ACTION < action-name >
msf post(safari_lastsession) > show options
...show and set options...
msf post(safari_lastsession) > 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.