Search code examples
extractfiddlerunzipdata-extraction

How to extract files from saz file?


I exported a session from Fiddler to saz files. This session includes only jpg files and I'm wondering - how can I extract the jpg files from saz quickly and easily?

Thanks!


Solution

  • The easiest way to extract the JPEG files is to use Fiddler itself. Fiddler allows you to load a SAZ file (under File/Load Archive..).

    enter image description here

    Once loaded, just right-click on the HTTP message with the JPEG and select Save/Response/Response Body....

    enter image description here

    If you want to do it the hard way, a SAZ file is just a zip file. Below is from the Fiddler FAQ page

    SAZ files are simply specially formatted .ZIP files. If you rename a .SAZ file to .ZIP, you can open it for viewing using standard ZIP viewing tools.

    According to the FAQ, the HTTP payload data is stored in a directory called raw. The JPEG data will be in one of the sessid#_s.txt files, but embedded in a HTTP response message. Strip the HTTP headers to get the JPEG (assuming there is no extra encoding in the HTTP message).

    sessid#_s.txt - contains the raw server request