Jonas' blog

IT security & forensics


Recover broken docx

Today a friend of me asked me to recover a docx document. MS Word called this document broken.

docx is essentially a zip file. The command zip -F broken.docx --out tries to restore the file. Well no success. zip -FF broken.docx --out tries harder! Afterwards unzip unzips the file. The file document.xml in the folder word contains the actually text data from the word document. Unfortunately in my case the document.xml was half empty :( Zip commands are stolen from: