-
Remove imp import from xxxswf for python 3.12 compatability
-
Fix unittests
-
Introduced an error when silencing pylint warnings. This should fix it.
-
rtfobj.py syntax error
-
oleobj.py syntax error
-
In python 3.12+ this escaping is reported as syntax error. Moving the dash to the end of the regex avoids the need for escaping it. oletools/oleobj.py:537 /rpmbuild/BUILD/oletools-78b2d459a33df378a4f69ffc6c33313509cecfe4/oletools/oleobj.py:537: SyntaxWarning: invalid escape sequence '\-' sane_fname = re.sub(u'[^a-zA-Z0-9.\-_ ]', replacement, basepath)
-
In python 3.12+ it is reporting the syntax error oletools/rtfobj.py:272 /rpmbuild/BUILD/oletools-78b2d459a33df378a4f69ffc6c33313509cecfe4/oletools/rtfobj.py:272: SyntaxWarning: invalid escape sequence '\d' DECIMAL_GROUP = b'(\d{1,250})'
-
# Conflicts: # tests/olevba/test_basic.py
-
Pylint is just wrong in a few cases (admittedly: those are hard), so can safely ignore these warnings. Also ignore errors in thirdparty, this is not really our code. Also remove a few old "pylint silencers" ("# pylint: disable=...") that are not used any more in v3.10 of pylint -
If there is an error in log-handling (e.g. wrong args to logger call) do not fail or raise but produce something helpful
-
Use a standard logging.Formatter to do %-formatting and other stuff (i.e. the regular formatter job) before converting to Json.
-
We set logging.captureWarnings to True and use our logging framework for python's builtin warnings logger. Warnings from that logger will have "type=warning" per default (as opposed to "type=msg").
-
Fix a SyntaxWarning in Python 3.8+
-
Arg "keepends" is a non-keyword-arg in python 2.7
-
Sofar we have only looked at the `filename` attribute but in malware samples the path has been empty and windows used src_path or tmp_path to determine dumped file type. Look at all 3 filenames/paths, try to preserve suffix but still limit length of resulting file name. Deal with multiple objects of same resulting filename by offering random file names
-
Logging in mraptor is used for debugging olevba only
-
Help debugging
-
This is part of LoggerAdapter only since python 3.2