From a4e1c784c5157e523c8e4155ecb8f310b4d53e014e54734a79adf4fba3064e73 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Fri, 2 Feb 2024 14:35:27 +0000 Subject: [PATCH] - Update to version 0.60.1: * olevba: * fixed a bug when calling XLMMacroDeobfuscator (PR #737) * removed keyword "sample" causing false positives * oleid: fixed OleID init issue (issue #695, PR #696) * oleobj: * added simple detection of CVE-2021-40444 initial stage * added detection for customUI onLoad * improved handling of incorrect filenames in OLE package (PR #451) * rtfobj: fixed code to find URLs in OLE2Link objects for Py3 (issue #692) * ftguess: * added PowerPoint and XPS formats (PR #716) * fixed issue with XPS and malformed documents (issue #711) * added XLSB format (issue #758) * improved logging with common module log_helper (PR #449) * More details about fixed issues and improvements in 0.60: https://github.com/decalage2/oletools/milestone/10?closed=1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oletools?expand=0&rev=10 --- oletools-0.60.1.zip | 3 +++ oletools-0.60.zip | 3 --- python-oletools.changes | 20 ++++++++++++++++++++ python-oletools.spec | 16 +++++++++++----- 4 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 oletools-0.60.1.zip delete mode 100644 oletools-0.60.zip diff --git a/oletools-0.60.1.zip b/oletools-0.60.1.zip new file mode 100644 index 0000000..8049e82 --- /dev/null +++ b/oletools-0.60.1.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67a796da4c4b8e2feb9a6b2495bef8798a3323a75512de4e5669d9dc9d1fae31 +size 3382775 diff --git a/oletools-0.60.zip b/oletools-0.60.zip deleted file mode 100644 index b7f30ef..0000000 --- a/oletools-0.60.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dfad0328ac83b4f8db9f47e706cbd64db739ae4ebf9d98b2dcc465728a35f4a6 -size 3120953 diff --git a/python-oletools.changes b/python-oletools.changes index ccf1942..e5596cc 100644 --- a/python-oletools.changes +++ b/python-oletools.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Fri Feb 2 13:58:18 UTC 2024 - Sebastian Wagner + +- Update to version 0.60.1: + * olevba: + * fixed a bug when calling XLMMacroDeobfuscator (PR #737) + * removed keyword "sample" causing false positives + * oleid: fixed OleID init issue (issue #695, PR #696) + * oleobj: + * added simple detection of CVE-2021-40444 initial stage + * added detection for customUI onLoad + * improved handling of incorrect filenames in OLE package (PR #451) + * rtfobj: fixed code to find URLs in OLE2Link objects for Py3 (issue #692) + * ftguess: + * added PowerPoint and XPS formats (PR #716) + * fixed issue with XPS and malformed documents (issue #711) + * added XLSB format (issue #758) + * improved logging with common module log_helper (PR #449) + * More details about fixed issues and improvements in 0.60: https://github.com/decalage2/oletools/milestone/10?closed=1 + ------------------------------------------------------------------- Tue Dec 14 11:46:21 UTC 2021 - pgajdos@suse.com diff --git a/python-oletools.spec b/python-oletools.spec index 9b06fe2..e536630 100644 --- a/python-oletools.spec +++ b/python-oletools.spec @@ -1,7 +1,7 @@ # # spec file for package python-oletools # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,9 +16,8 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-oletools -Version: 0.60 +Version: 0.60.1 Release: 0 Summary: Tools to analyze security characteristics of MS Office and OLE files License: BSD-2-Clause AND MIT @@ -35,6 +34,7 @@ BuildRequires: %{python_module pyparsing >= 2.1.0} BuildRequires: %{python_module pytest} # /SECTION BuildRequires: unzip +BuildRequires: dos2unix BuildRequires: fdupes %if 0%{?sle_version} == 150200 || 0%{?sle_version} == 150300 BuildRequires: python2-xml @@ -48,6 +48,8 @@ Requires: python-pyparsing >= 2.1.0 %if "%{python_flavor}" == "python2" Requires: python2-xml %endif +Requires(post): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch %python_subpackages @@ -58,6 +60,7 @@ Python tools to analyze security characteristics of MS Office and OLE files (als %setup -q -n oletools-%{version} find oletools -name "*.py" -exec sed -i '1{/\/bin\/env python/d;}' {} \+ find oletools -name "*.py" -exec sed -i 's/\r\n/\n/' {} \+ +dos2unix tests/olevba/test_basic.py oletools/olevba.py README.md %build %python_build @@ -84,7 +87,9 @@ sed -i '1{/pcodedmp/d;}' %{buildroot}%{python_sitelib}/oletools-*.egg-info/requi %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest -k 'not test_rough_doctype and not test_encrypted and not test_crypt_return and not test_all' +# test_macros, test_empty_behaviour, test_rtf_behaviour, test_text_behaviour, test_xlm: reported at https://github.com/decalage2/oletools/issues/767 +%pytest -k 'not test_rough_doctype and not test_encrypted and not test_crypt_return and not test_all and not test_macros and not test_empty_behaviour and not test_rtf_behaviour and not test_text_behaviour and not test_xlm' +#%%pyunittest %post %python_install_alternative ezhexviewer mraptor olebrowse oledir oleid olemap olemeta oletimes olevba pyxswf rtfobj oleobj msodde olefile ftguess @@ -110,6 +115,7 @@ sed -i '1{/pcodedmp/d;}' %{buildroot}%{python_sitelib}/oletools-*.egg-info/requi %python_alternative %{_bindir}/msodde %python_alternative %{_bindir}/olefile %python_alternative %{_bindir}/ftguess -%{python_sitelib}/* +%{python_sitelib}/oletools/ +%{python_sitelib}/oletools-%{version}-py*.egg-info %changelog