~alienagain/Stix_stuff

2038360ebfca595fcb72468b1de7f069c6cc3ad6 — terceranexus6 9 months ago e0750de
adding the output to a file in json
1 files changed, 7 insertions(+), 0 deletions(-)

M bulk_conversion/bundle_creator.py
M bulk_conversion/bundle_creator.py => bulk_conversion/bundle_creator.py +7 -0
@@ 93,5 93,12 @@ my_bundle = Bundle(my_indicators[:], malware, my_relationships[:])
print("\nDone!")
print(my_bundle.serialize(pretty=True))

output_f = mal_name + "_Bundle.json"
f_o = open(output_f, "x")

print("\nWriting the contents into " + output_f + " ...")

f_o.write(my_bundle.serialize(pretty=True))

print("\nDone! enjoy")