/usr/share/magicrescue/recipes/msoffice is in magicrescue 1.1.8-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # Extracts Microsoft's OLE container format, used by newer versions of
# Microsoft Office (>= Word 6.0) and old versions of StarOffice (<= 5.0). The
# format is documented at http://user.cs.tu-berlin.de/~schwartz/pmh/guide.html
#
# The files it extracts can be Word, Powerpoint, Excel or other interesting
# things, but many weird OLE fragments will be pulled out as well. All known
# formats are listed near the top of tools/ole_rename.pl.
# This recipe will NOT recover Microsoft Access files, WordPerfect files,
# OpenOffice.org files, or StarOffice >= 6.0 files.
# It will try to guess the file type, but if it fails to guess something you
# have identified manually, please send sample files to jbj@knef.dk.
#
# To recover files from OpenOffice.org or StarOffice >= 6.0, use the "zip"
# recipe instead (these files are just zip files with some xml content)
#
# Depends on perl: http://perl.com
0 string \xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1
extension ole
command oleextract.pl > "$1"
rename ole_rename.pl "$1"
# There must be at least 4 512-byte blocks: the header, a big block depot, the
# root entry, and something useful. Files around 4KB are usually embedded OLE
# objects, and Office documents start appearing above 10KB.
min_output_file 2048
|