Logo white

Peter M. Groen / oletools

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 1,521
  • Compare
  • Branches 1
  • Tags 0
  • oletools
  • tests
07 May, 2019
1 commit
  • tests: Add test for %-autoformatting of log messages
    c7a708db
    Christian Herdtweck authored
    2019-05-07 10:21:14 +0200  
    Browse Dir »

06 May, 2019
2 commits
  • tests: Do not assume we are running CPython
    95468654
    Christian Herdtweck authored
    2019-05-06 12:46:42 +0200  
    Browse Dir »
  • tests: Clarify whether to include stderr or not
    d24210bc
    Christian Herdtweck authored
    2019-05-06 12:46:42 +0200  
    Browse Dir »

30 Apr, 2019
6 commits
  • test: Use call_and_capture in olevba tests ...
    0bc67280
    Running main() within same interpreter capturing SystemExit and
    sys.stdout/err always causes trouble (at least in unittest).
    Fork another python process and capture from there, that is easier
    and cleaner in my view.
    Christian Herdtweck authored
    2019-04-30 13:02:46 +0200  
    Browse Dir »
  • tests: Move code to "run and capture" to utils
    b22b36c5
    Christian Herdtweck authored
    2019-04-30 13:02:46 +0200  
    Browse Dir »
  • tests: Move constants into proper module
    06c591af
    Christian Herdtweck authored
    2019-04-30 12:50:30 +0200  
    Browse Dir »
  • tests: minor pylint-inspired changes
    9b05546a
    Christian Herdtweck authored
    2019-04-30 12:50:30 +0200  
    Browse Dir »
  • tests: Check behaviour of olevba for rtf, text, empty
    f537ec1c
    Christian Herdtweck authored
    2019-04-30 12:50:30 +0200  
    Browse Dir »
  • tests: tell oleid test what to expect for new samples
    14e68768
    Christian Herdtweck authored
    2019-04-30 12:50:30 +0200  
    Browse Dir »

29 Apr, 2019
1 commit
  • tests: Add another sample ...
    5dfba516
    This is an interesting one since "our" old implementation of is_encrypted
    claims that the embedded file is still encrypted (which it is not), but
    the msoffcrypto-is_encrypted gets it right.
    Christian Herdtweck authored
    2019-04-29 12:01:35 +0200  
    Browse Dir »

04 Apr, 2019
1 commit
  • Merge pull request #410 from christian-intra2net/json-more-structure ...
    9780dc7c
    Type-Field in logging
    Philippe Lagadec authored
    2019-04-04 10:15:46 +0200  
    Browse Dir »

02 Apr, 2019
2 commits
  • tests: tell ooxml test about new test samples
    a55bd780
    Christian Herdtweck authored
    2019-04-02 14:07:31 +0200  
    Browse Dir »
  • tests: add open office samples to oleobj test ...
    ee87aca4
    oleobj cannot detect yet that these are open office, but it can now
    treat them like regular zip files and find embedded objects in them.
    
    Samples are harmless, were created by me.
    Christian Herdtweck authored
    2019-04-02 14:04:33 +0200  
    Browse Dir »

01 Apr, 2019
2 commits
  • tests: replace 3 calls to deprecated function
    95bd4497
    Christian Herdtweck authored
    2019-04-01 09:05:08 +0200  
    Browse Dir »
  • tests: Test new "type" field of json logging output ...
    7d89934c
    Every logging call can have an optional arg type='...' which is
    ignored when logging to text but shows in json output. The "type"
    of regular logging output in json is type='msg'.
    
    Added 2 messages with different type, adjusted existing test, created
    2 new ones.
    Christian Herdtweck authored
    2019-04-01 09:04:52 +0200  
    Browse Dir »

25 Mar, 2019
6 commits
  • setup: bumped version to 0.54dev12
    8d15762e
    decalage2 authored
    2019-03-25 22:16:34 +0100  
    Browse Dir »
  • tests: Adjust dde output text
    9f03687a
    Christian Herdtweck authored
    2019-03-25 11:47:34 +0100  
    Browse Dir »
  • tests: Create test for decryption in msodde
    1363c4f0
    Christian Herdtweck authored
    2019-03-25 11:47:34 +0100  
    Browse Dir »
  • tests: Add exceptions to olevba return code test
    7e5ee417
    Christian Herdtweck authored
    2019-03-25 11:47:34 +0100  
    Browse Dir »
  • tests: add 4 clean example files for default-encryption ...
    5ab52bb6
    These 4 files contain dde-links to calc.exe and are encrypted with
    excel's standard password.
    Christian Herdtweck authored
    2019-03-25 11:47:34 +0100  
    Browse Dir »
  • tests: Create test for new excel encrypted files
    e2684a62
    Christian Herdtweck authored
    2019-03-25 11:47:34 +0100  
    Browse Dir »

21 Mar, 2019
4 commits
  • tests: add encrypted excel samples ...
    ddeeb743
    These are encrypted with the standard password hard-coded into excel to
    implement a form of write protection
    Christian Herdtweck authored
    2019-03-21 17:53:46 +0100  
    Browse Dir »
  • tests: Use common base dirs in log_helper tests
    83720167
    Christian Herdtweck authored
    2019-03-21 17:53:46 +0100  
    Browse Dir »
  • tests: provide more common base dirs
    da5d4644
    Christian Herdtweck authored
    2019-03-21 17:53:46 +0100  
    Browse Dir »
  • tests: cannot test yet encrypted.ppt
    03c467a6
    Christian Herdtweck authored
    2019-03-21 17:53:46 +0100  
    Browse Dir »

30 Oct, 2018
5 commits
  • Merge pull request #317 from samiraguiar/oleobj-detect-external ...
    79159242
    oleobj: detect external links
    Philippe Lagadec authored
    2018-10-30 19:53:02 +0100  
    Browse Dir »
  • tests: create unittest for msodde with encrypted input
    8cbc4d2c
    Christian Herdtweck authored
    2018-10-30 12:18:59 +0100  
    Browse Dir »
  • tests: create unittest for olevba with encrypted input
    c2018fd8
    Christian Herdtweck authored
    2018-10-30 12:18:59 +0100  
    Browse Dir »
  • tests: create unittest for oleid ...
    2966aa5d
    Checks output on all data in tests/test-data dir
    Christian Herdtweck authored
    2018-10-30 12:18:59 +0100  
    Browse Dir »
  • tests: add encrypted office files to sample set ...
    d7a7c7b2
    Samples were created by me using Office 2010 on a Windows 7 machine,
    password is "encrypted", contents is trivial (no links, macros, ...)
    
    Encryption should be the CryptoAPI RC4 Encryption (see [MS-OFFCRYPTO])
    Christian Herdtweck authored
    2018-10-30 12:18:59 +0100  
    Browse Dir »

15 Oct, 2018
8 commits
  • Update imports for log_helper in tests
    911b2732
    Christian Herdtweck authored
    2018-10-15 10:42:04 +0200  
    Browse Dir »
  • Rename log_helper base dir in tests
    e073ff5a
    Christian Herdtweck authored
    2018-10-15 10:41:57 +0200  
    Browse Dir »
  • log_helper: fix tests after refactoring code
    63a70056
    Samir Aguiar authored
    2018-10-15 10:28:03 +0200  
    Browse Dir »
  • unittest: Simplify running from command line ...
    a4f86aa2
    Unittests worked on Travis and from IDEs like PyCharm, but from
    command line I had to change log helper test root dir to one level up
    and unset PYTHONPATH
    Christian Herdtweck authored
    2018-10-15 10:28:03 +0200  
    Browse Dir »
  • unittest: remove OutputCapture (not needed any more) ...
    e310b9bb
    The OutputCapture was a slightly hacky way to get output from scripts without
    using subprocess. However, keeping it working started requiring reloads since
    module's logs are global variables which were re-initialized which caused
    trouble). That required reload of all submodules, so more hacks are needed
    to keep the initial hack "alive". Therefore I am glad it is not needed any more
    and can be removed.
    Christian Herdtweck authored
    2018-10-15 10:28:03 +0200  
    Browse Dir »
  • unittest: remove json tests (are included in log tests)
    e1d931de
    Christian Herdtweck authored
    2018-10-15 10:28:03 +0200  
    Browse Dir »
  • msodde: simplify unit tests ...
    6c43d28d
    Some msodde tests call the main() function from the module
    which tries to enable logging, causing lots of problems
    when running multiple tests due to the singleton dependency
    of the logging modules.
    
    Since what they want to test is whether msodde is finding
    links, we can use the process_file() function directly
    instead and check its output.
    Samir Aguiar authored
    2018-10-15 10:28:03 +0200  
    Browse Dir »
  • log helper: add unit tests
    e22a452f
    Samir Aguiar authored
    2018-10-15 10:28:03 +0200  
    Browse Dir »

15 Sep, 2018
1 commit
  • olefile is now an external dependency, obsolete copy removed from thirdparty folder
    f07043b9
    decalage2 authored
    2018-09-15 16:52:29 +0200  
    Browse Dir »

28 Aug, 2018
1 commit
  • Add delimiter to generated CSV to keep csv.Sniffer detecting the correct ...
    1906a4cf
    delimiter in current python versions
    Sebastian Willenborg authored
    2018-08-28 22:45:43 +0200  
    Browse Dir »