Commit e02ea888cb56f3cd7337fc362d3e395e0b614746
1 parent
dafe55c6
warn if command line options are ignored or set (using log.info)
Showing
1 changed file
with
3 additions
and
0 deletions
oletools/olevba.py
| ... | ... | @@ -3068,7 +3068,10 @@ def main(): |
| 3068 | 3068 | |
| 3069 | 3069 | # with the option --reveal, make sure --deobf is also enabled: |
| 3070 | 3070 | if options.show_deobfuscated_code and not options.deobfuscate: |
| 3071 | + log.info('set --deobf because --reveal was set') | |
| 3071 | 3072 | options.deobfuscate = True |
| 3073 | + if options.output_mode == 'triage' and options.show_deobfuscated_code: | |
| 3074 | + log.info('ignoring option --reveal in triage output mode') | |
| 3072 | 3075 | |
| 3073 | 3076 | # Column headers (do not know how many files there will be yet, so if no output_mode |
| 3074 | 3077 | # was specified, we will print triage for first file --> need these headers) | ... | ... |