Package: olefile
olefileolefileis a Python package to parse, read and writeMicrosoft OLE2 files(also called Structured Storage, Compound File Binary Format or Compound Document File Format),
such as Microsoft Office 97-2003 documents, vbaProject.bin in MS Office 2007+ files, Image Composer
and FlashPix files, Outlook messages, StickyNotes, several Microscopy file formats, McAfee antivirus quarantine files,
etc.Quick links:Home page-Download/Install-Documentation-Report Issues/Suggestions/Questions-Contact the author-Repository-Updates on TwitterNewsFollow all updates and news on Twitter:https://twitter.com/decalage22023-12-01 v0.47: now distributed as wheel package, added VT_VECTOR support for properties,
added get_userdefined_properties, fixed bugs in isOleFile and write_sect, improved file closure2018-09-09 v0.46: OleFileIO can now be used as a context manager
(with...as), to close the file automatically
(seedoc).
Improved handling of malformed files, fixed several bugs.2018-01-24 v0.45: olefile can now overwrite streams of any size, improved handling of malformed files,
fixed severalbugs, end of support for Python 2.6 and 3.3.2017-01-06 v0.44: several bugfixes, removed support for Python 2.5 (olefile2),
added support for incomplete streams and incorrect directory entries (to read malformed documents),
added getclsid, improveddocumentationwith API reference.2017-01-04: moved the documentation toReadTheDocs2016-05-20: moved olefile repository toGitHub2016-02-02 v0.43: fixed issues#26and#27,
better handling of malformed files, use python logging.seechangelogfor more detailed information and
the latest changes.Download/InstallIf you have pip or setuptools installed (pip is included in Python 2.7.9+), you may simply runpip install olefileoreasy_install olefilefor the first installation.To update olefile, runpip install -U olefile.Otherwise, seehttp://olefile.readthedocs.io/en/latest/Install.htmlFeaturesParse, read and write any OLE file such as Microsoft Office 97-2003 legacy document formats (Word .doc, Excel .xls,
PowerPoint .ppt, Visio .vsd, Project .mpp), MSI files, Image Composer and FlashPix files, Outlook messages, StickyNotes,
Zeiss AxioVision ZVI files, Olympus FluoView OIB files, etcList all the streams and storages contained in an OLE fileOpen streams as filesParse and read property streams, containing metadata of the filePortable, pure Python module, no dependencyolefile can be used as an independent package or with PIL/Pillow.olefile is mostly meant for developers. If you are looking for tools to analyze OLE files or to extract data (especially
for security purposes such as malware analysis and forensics), then please also check mypython-oletools, which are built upon olefile and provide a higher-level interface.DocumentationPlease see theonline documentationfor more information.Real-life examplesA real-life example:using OleFileIO_PL for malware analysis and forensics.See alsothis paperabout python tools for forensics, which features olefile.Licenseolefile (formerly OleFileIO_PL) is copyright (c) 2005-2023 Philippe Lagadec
(https://www.decalage.info)All rights reserved.Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.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 HOLDER 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.olefile is based on source code from the OleFileIO module of the Python Imaging Library (PIL) published by Fredrik
Lundh under the following license:The Python Imaging Library (PIL) isCopyright (c) 1997-2009 by Secret Labs ABCopyright (c) 1995-2009 by Fredrik LundhBy obtaining, using, and/or copying this software and/or its associated documentation, you agree that you have read,
understood, and will comply with the following terms and conditions:Permission to use, copy, modify, and distribute this software and its associated documentation for any purpose and
without fee is hereby granted, provided that the above copyright notice appears in all copies, and that both that
copyright notice and this permission notice appear in supporting documentation, and that the name of Secret Labs AB or
the author not be used in advertising or publicity pertaining to distribution of the software without specific, written
prior permission.SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.