Re: Obfuscating with % - a new cache hack

From: Clifton Royston <cliftonr@dont-contact.us>
Date: Thu, 15 Jul 1999 10:00:48 -1000 (HST)

Marc-Adrian Napoli writes:
> Hi There,
> Does anyone know if there is anyway to be able to browse the contents of my
> cache?
>
> The proxy server does have apache on it, serving only the cachemgr.cgi page
> at the moment....
>
> Seeing as the cache stores are in a funny format (If i'm looking for say
> *.jpg's in my cache, I can't see them, I can only see "000AAA" type files) I
> have thought of another way of viewing the files.

  If you simply browse the cache content files on the UNIX system, as I
happened to do, you'll see that each file starts with a little binary
junk followed by the URL, the retrieved response-code, and the headers.
With a bit of scanning through them, you should be able to find the
true name/extension of the file that's being cached, the MIME header,
and other useful information. Just write the minimal code to parse
those headers.
 
> If I open up a binary file (Lets say JPG) and grab the first 3/4 characters,
> and then write a script to compare this to all the files in the cache, will
> I come up with a list of files that are jpg's? Theoretically it sounds okay,
> but I'm sure there is another way to do it.

Start with poking around and looking at what's there - not that I
always follow that advice!
  -- Clifton

-- 
 Clifton Royston  --  LavaNet Systems Architect --  cliftonr@lava.net
        "An absolute monarch would be absolutely wise and good.  
           But no man is strong enough to have no interest.  
             Therefore the best king would be Pure Chance.  
              It is Pure Chance that rules the Universe; 
          therefore, and only therefore, life is good." - AC
Received on Thu Jul 15 1999 - 13:47:59 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:26 MST