Sign in to follow this  
Followers 0
Aghaster

.DS_Store Files

10 posts in this topic

I've noticed a while ago that MAC OS X creates hidden .DS_Store files that seem to keep information on how to display icons and folders. Sometimes they end up being publicly accessible in a web server, and I was wondering if there was anything valuable to get out of that. Maybe it contains a list of the files of the directory it was taken from? No idea. I'm wondering if there is any program that allows easy reading of the information contained in the file, and also I'd like to know more about what is stored in the file. I guess there isn't much but I just want to make sure. Thanks

0

Share this post


Link to post
Share on other sites
I've noticed a while ago that MAC OS X creates hidden .DS_Store files that seem to keep information on how to display icons and folders. Sometimes they end up being publicly accessible in a web server, and I was wondering if there was anything valuable to get out of that. Maybe it contains a list of the files of the directory it was taken from? No idea. I'm wondering if there is any program that allows easy reading of the information contained in the file, and also I'd like to know more about what is stored in the file. I guess there isn't much but I just want to make sure. Thanks

I've had this in windows xp as well, I don't think it's anything new.

0

Share this post


Link to post
Share on other sites

Okay, so it does contain potentially valuable information. I found this documentation on the the .DS_Store file format, but I'm wondering if anybody knows of a tool to easily read the relevant information out of the file?

0

Share this post


Link to post
Share on other sites

The .Ds_Store is a proprietary binary file format that has been around since atleast system 7. Apple has not disclosed the format, and noone has created a tool that directly mods or reads it.

IT mostly stores the gui info about a folders content and screen location and options.

Interesting, the .DS file in a folder refers to that folders contents, but not that folder itself. The .DS store in the parent folder holds that folders info.

ie: /User/Apple/.DS_store

holds the GUI display boundaries of

/User/Apple/Music

/User/Apple/Pictures

etc.

While the GUI Display boundaries of /User/Apple is stored in

/User/.DS_Store

Also, none of the changes are written to the .ds file until shutdown or safe unmounting of the drive that contains it.

0

Share this post


Link to post
Share on other sites

I just learned that looking at the .DS_Store file in a hex editor will display the directory contents..

0

Share this post


Link to post
Share on other sites
I just learned that looking at the .DS_Store file in a hex editor will display the directory contents..

It does. The name of things have two byte letters, one for the letter, then a 00 byte.

0

Share this post


Link to post
Share on other sites

A .DS_Store file will appear in a directory which has been opened in the Finder (or a service that works through the Finder). It would show up in a webserver directory if someone opened that directory locally on the machine, or connected to that directory via AFP (Apple File Protocol) and viewed the mounted share in their Finder. Several aspects of .DS_Store creation can be tweaked by writing defaults. For example...

http://support.apple.com/kb/HT1629

0

Share this post


Link to post
Share on other sites

So what identifiable information is stored within the .DS_Store file?

0

Share this post


Link to post
Share on other sites

All files and folders within the directory are disclosed.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0