Internet Explorer Cache and Cookies Dump Utility

IE Cache Utility is a small and simple console-based application written in C++ to list resources cached and cookies persisted by Internet Explorer. It uses the functions FindFirstUrlCacheEntry and FindNextUrlCacheEntry from the Windows Internet (WinINet) API to enumerate the cache and cookies and should work on just about any flavor of Windows.

Downloads

See also license below.

Usage

IE Cache Utility only supports three commands:

Typing iecache help on the command-line will show the usage as follows:

Usage: iecache help | list | cookies

Just typing iecache list will list the URLs of all the resources found in Internet Explorer's cache cache for the currently logged on user. You can use it with grep or the built-in FINDSTR command to pipe and filter the output. For example, the following

iecache list | findstr /i google

will list all the URLs of all cached resources in which the word google (case-insensitive) appears, as shown by the sample output below:

http://chart.apis.google.com/chart?chs=225x125&cht=gom&chd=t:50
http://elmah.googlecode.com/svn/wiki/homeshot.png
res://C:\Program Files\Google\Google Talk\googletalk.exe/GIF/7160
res://C:\Program Files\Google\Google Talk\googletalk.exe/#2/#7167
https://adwords.google.com/select/images/adwords_home/new_logo.gif
http://pagead2.googlesyndication.com/pagead/show_ads-fds90.js
http://www.google-analytics.com/urchin.js
http://www.google-analytics.com/urchin-fds90.js
res://C:\Program Files\Google\Google Talk\googletalk.exe/#2/#7166
http://pagead2.googlesyndication.com/pagead/show_ads.js

If you use the /verbose swtich, then you can also get the details of each entry, include the HTTP response headers when the resource was retrieved and cached:

URL         : http://www.microsoft.com/library/…/screenshot_windowsvista.jpg
Local file  : C:\Users\…\Temporary Internet Files\…\screenshot_windowsvista[1].jpg
Use count   : 0
Hit rate    : 1
Byte size   : 5992
Accessed    : Wednesday, July 30, 2008 4:24:49 PM
Modified    : Saturday, July 12, 2008 2:53:52 AM
Synchronized: Wednesday, July 30, 2008 4:24:50 PM
Expiration  : Wednesday, July 30, 2008 4:39:50 PM

HTTP/1.1 200 OK
Content-Length: 5992
Content-Type: image/jpeg
ETag: "edaa9dc0b9e3c81:0"
P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo … PHY PRE PUR UNI"
X-Powered-By: ASP.NET

In addition to listing entires in the cache, you can also dump cookies using iecache cookies. An example of how the output may look like is shown below:

Cookie:user@messenger.msn.com/
Cookie:user@login.live.com/
Cookie:user@msdn2.microsoft.com/
Cookie:user@realmedia.com/
Cookie:user@www.codeplex.com/
…
Cookie:user@docs.jquery.com/

Once more, you can pipe the output through FINDSTR to filter. For example, the following

iecache cookies | findstr /i google

will list all cookies where the word google (case-insensitive) appears in the name of the cookie (not the value), as shown by the sample output below:

Cookie:user@google.com/
Cookie:user@groups.google.com/
Cookie:user@code.google.com/

You cannot get the values of the cookies at this time and there is no verbose output mode supported either when listing cookies.

License

IE Cache Utility is distributed under the OSI-approved and liberal New BSD License:

Copyright (c) 2005, Atif Aziz. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Source