Hacks &Networking (General) &Ramblings &Scripting Jl. on 09 Nov 2010
Viewing IE and Mozilla/Firefox history from Profile Directories
There are the usual ways to view history through the app, but I had to try and pull the history off an old partition because I needed a link I found right before a drive crashed.
For IE:
More details are found at this site – http://www.milincorporated.com/a-temporary-internet-files.html#ch2 . The file locations are:
Win2000/WinXP:
C:\Documents and Settings\<username>\Local Settings\Temporary Internet Files\
Vista/Win7:
C:\Users\<username>\AppData\Local\Microsoft\Windows\Temporary Internet Files\
C:\Users\<username>\AppData\Local\Microsoft\Windows\Temporary Internet Files\Low\
You’ll have to enable viewing hidden and system files. That page has a quick rundown about how to do so as well.
There’s a program called IE History Viewer available at this page:
http://www.nirsoft.net/utils/iehv.html
You point it at your profile directory and it lists everything. It can then spit it out as a CSV file or HTML report. Very nicely done, and very helpful.
For Firefox:
(More info was found here: http://kb.mozillazine.org/Profile_folder_-_Firefox#Finding_the_profile_folder) The profile directories are:
Win95/Win98/WinME:
C:\Windows\Application Data\Mozilla\Firefox\Profiles\<profile folder>
or
C:\Windows\Profiles\<Username>\Application Data\Mozilla\Firefox\Profiles\<profile folder>
Win2000/WinXP:
C:\Users\<Username>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile folder>
Once you find your profile, there are two versions of the history file – the Firefox V2 and earlier (history.dat), and V3 and greater (places.sqlite).
For Firefox 2 and earlier, it’s stored in history.dat . This file is in the “Mork” format which is apparently very rare and a pain in the arse to read. A program was written called Dork that’s a Mork viewer. It was available at ” http://www.sunturbine.com/dork/ “, but that page has since been lost. A copy was retained on the WebArchive, however, at ” http://web.archive.org/web/20070125084419/http://www.sunturbine.com/dork/ “ The zip file was also available for download from there. In case it’s no longer available I’ve attached the zip file here (dork_history_reader). He released it as free and open source so I don’t believe i’m violating any copyrights by republishing.
Disclaimer: Not my app, I didn’t write it, and I can’t help fix it if it’s broken. I’m just making it available again on the interwebs.
Run Dork and drag-and-drop history.dat onto it. It should decipher your history file.
For V3, the places.sqlite file is in a format called SQLite (clever file name, eh?). There’s an app called SQLite Browser available on SourceForge. http://sqlitebrowser.sourceforge.net/ Grab the latest version. When I wrote this it was 2.0b1 . Run the program, then open the places.sqlite file from the profile directory. You’ll get a list of tables, and one of them will be Places. That has your history in it.
Now the interesting part about all this is apparently it can be done remotely on another profile directory on your system, or over a network share (\\workstation\c$\users\…), as long as you have permissions to view the file.
