How can I view the contents of a swap file (e.g. swapfile0)? I know I can use the grep to serach for strings, but I would like to copy, then open the entire swapfile for analysis; anyone tried/know how?
I am doing research for live forensic response, and would like to document what info I can pull off a running mac.
Drag the swapfile to the desktop, and provide your administrator password when prompted; they can be accessed by choosing Go to Folder from the Finder's Go menu and entering /private/var/vm/ as the folder's path.
Niel,
Thanks for the response.
I am able to easily copy and move the file via finder or the terminal window, but how can I view the contents?
When I try viewing with textedit all I see is "????????????????????????" on every line. I can still use 'grep' on the file to search for strings, but I would like to peruse the file for content or strings that cannot be easily predefined.
Any additional thoughts?
You can use the command strings. With the syntax "sudo strings swapfile0 > ~/Desktop/file.txt" you can create an outputfile with the content of these swapfile.
This thread has been closed by the system or the community team.
You may vote for any posts you find helpful, or search the Community for additional answers.
View Swap File Contents
Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.