-
Use log helper
-
On my test VM this reduces test time for this one test from 33s to 10s
-
VBA stomping warning might occur here
-
Logging in mraptor is used for debugging olevba only
-
Help debugging
-
Do not need the last meta-information return code json output from olevba any more
-
This is part of LoggerAdapter only since python 3.2
-
This constant is needed for enable_logging() functions. It is the only reason for `import logging` in common-logging-enabled modules. Easier to provide it in log_helper
-
Logging uses the default StreamHandler, which per default sends its output to sys.stderr. However, the surrounding '[', ']' are printed to stdout. Fix that.
-
Make log_helper compatible with olevba which has its own print_json function and does not (yet?) use logging to create json.
-
This is slightly more complicated since olevba has its own json-print functions that need to be made compatible with log_helper's json formatting
-
So glad we have the unittests, otherwise would never have found this
-
Need something like this for when modules are imported by other modules (no main in oletools is run, so no log_helper.enable_logging)
-
olevba: fix sys.argv[1] using xlmdeobfuscator
-
Ftguess: more types and tests
-
With the creation of ftguess oleid has been changed a lot, the output of its .check() method is very different. Instead of just adapting the existing unittests, I re-created the complete test, trying to make it easier to change/extend in the future.