diff options
| -rwxr-xr-x | cli.py | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -40,8 +40,11 @@ def list_meta(class_file, filename): | |||
| 40 | Print all the meta of 'filename' on stdout | 40 | Print all the meta of 'filename' on stdout |
| 41 | ''' | 41 | ''' |
| 42 | print('[+] File %s :' % filename) | 42 | print('[+] File %s :' % filename) |
| 43 | for key, value in class_file.get_meta().iteritems(): | 43 | if class_file.is_clean(): |
| 44 | print(key + ' : ' + str(value)) | 44 | print('No harmful meta found') |
| 45 | else: | ||
| 46 | for key, value in class_file.get_meta().iteritems(): | ||
| 47 | print(key + ' : ' + str(value)) | ||
| 45 | 48 | ||
| 46 | def is_clean(class_file, filename): | 49 | def is_clean(class_file, filename): |
| 47 | ''' | 50 | ''' |
| @@ -90,7 +93,6 @@ def main(): | |||
| 90 | for filename in filenames: | 93 | for filename in filenames: |
| 91 | class_file = mat.create_class_file(filename, args.backup) | 94 | class_file = mat.create_class_file(filename, args.backup) |
| 92 | func(class_file, filename) | 95 | func(class_file, filename) |
| 93 | print('\n') | ||
| 94 | 96 | ||
| 95 | if __name__ == '__main__': | 97 | if __name__ == '__main__': |
| 96 | main() | 98 | main() |
