Commit 2363247a3cad10ce430231ecec962753dbac4a2e

Authored by Philippe Lagadec
1 parent 4539d6b1

olevba: fixed process_file_triage with skip_deobfuscate

Showing 1 changed file with 6 additions and 6 deletions
oletools/olevba.py
... ... @@ -2720,7 +2720,7 @@ class VBA_Parser_CLI(VBA_Parser):
2720 2720 return result
2721 2721  
2722 2722  
2723   - def process_file_triage(self, show_decoded_strings=False):
  2723 + def process_file_triage(self, show_decoded_strings=False, skip_deobfuscate=False):
2724 2724 """
2725 2725 Process a file in triage mode, showing only summary results on one line.
2726 2726 """
... ... @@ -2955,11 +2955,11 @@ def main():
2955 2955 json_results = json2ascii(json_results)
2956 2956 #print_json(json_results)
2957 2957  
2958   - if False: # options.outfile: # (option currently commented out)
2959   - with open(outfile, 'w') as write_handle:
2960   - json.dump(write_handle, **json_options)
2961   - else:
2962   - print json.dumps(json_results, **json_options)
  2958 + # if False: # options.outfile: # (option currently commented out)
  2959 + # with open(outfile, 'w') as write_handle:
  2960 + # json.dump(write_handle, **json_options)
  2961 + # else:
  2962 + print json.dumps(json_results, **json_options)
2963 2963  
2964 2964  
2965 2965 def print_json(j):
... ...