mirror of https://github.com/MISP/MISP
fix: Set shebangs, cleanup
parent
0e93b54e14
commit
ecb58da93a
|
@ -53,6 +53,7 @@ def make_objects(path):
|
|||
to_return['references'] += fo.ObjectReference
|
||||
return json.dumps(to_return, cls=MISPEncode)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(description='Extract indicators out of binaries and returns MISP objects.')
|
||||
group = parser.add_mutually_exclusive_group()
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
try:
|
||||
import zmq
|
||||
except ImportError:
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
import json, sys
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import json
|
||||
import sys
|
||||
results = {
|
||||
'success': 1,
|
||||
'stix': 0,
|
||||
|
@ -38,11 +41,11 @@ except Exception:
|
|||
results['success'] = 0
|
||||
|
||||
print(json.dumps({
|
||||
'success' : results['success'],
|
||||
'stix' : results['stix'],
|
||||
'cybox' : results['cybox'],
|
||||
'mixbox' : results['mixbox'],
|
||||
'success': results['success'],
|
||||
'stix': results['stix'],
|
||||
'cybox': results['cybox'],
|
||||
'mixbox': results['mixbox'],
|
||||
'maec': results['maec'],
|
||||
'pymisp' : results['pymisp']
|
||||
'pymisp': results['pymisp']
|
||||
}))
|
||||
sys.exit(1)
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue