On the Oct 15 Cyberspeak Podcast Ovie Carroll talked about Vista Recycle bin forensics. Based on Ovie's chat I have created a program that will read the $I files and create a simple report. The report consists of the $I file name, the actual filename with directory, the date/time the file was deleted and the file size. I have also added the functionality to copy the $R (actual data file that was deleted) to the actual name into a directory specified by you.
So what does the prorgam do? Once you fire up the gui you need to provide a filename for the database that is created that will store the data that is read. Provide a direcotry where the $I files are, if you want to copy the $R files to there original names then they need to be in the same directory. Optionally you need to provide an output directory where you want to write out the deleted files to with there actual names. Once that is done then press the buttons and watch it go to work. When you are ready to run the report you can either sort the data in ascending or descending order based on the deletion date and show the report in either excel or your favorite web browser.
If you want to see the gory details the code is provided. As always this script can be run on OS's other then Windows (the report piece will have to be modified some).
The programs can be found here. As always Questions/Comments/Improvements let me know.
Friday, November 2, 2007
Dumpster Diving with Ovie.....
Posted by Mark McKinnon at 9:09 AM
Labels: Cyberspeak Podcast, Ovie Carroll, Vista Recycle Bin
Monday, October 15, 2007
Thumbs Up To Ovie......
On the Sept 23 podcast of Cyberspeak Ovie Carroll talked about the thumbs cache that is new in Windows Vista. In response I have created a perl script with a autoit gui front end that will parse all 4 of the thumbcache files.
The base program is based on the sigs.pl script originally written by Harlan Carvey. What the perl script does is open the specified thumbscache files and then scans for file header signatures. Once it finds a jpg, png or bmp file header it then backs up and reads what I will call the file header record of that image file. In this record is the size and internal name of the file. I have not figured out how it gets that particular name but if someone knows please let all of us know. The thumbcache_32 and 96 files appear to only contain bmp files while the thumbcache_256 and 1024 contain png and jpg's. For all the gory details see the perl code.
Since the thumbcache files I had were very limited this is about as much as I know. As for the gui just pick the file you want to parse, input the directory with a "\" as the end where the thumbcache files are and input a directory to write all the images to and click on the parse button and watch it go.
Now since this does not use any windows specific perl modules there is no reason that you cannot run it on Linux or a Mac. The code and executable can be found here.
Thanks to Ovie for the idea for this program. Ovie and Bret keep up the great work on the podcast.
As always questions/comments/thoughts/problems let me know. My eyes and ears are always looking for great new projects.
Posted by Mark McKinnon at 7:24 PM
Labels: Autoit, Bret Padres, Cyberspeak Podcast, Harlan Carvey, Ovie Carroll, Perl, Thumbcache