From 0521833c6557ebef71f8e21ffe5dc45baf165190 Mon Sep 17 00:00:00 2001 From: Hannah Ward Date: Tue, 6 Sep 2016 14:12:09 +0100 Subject: [PATCH] Removed useless pickle storage of stiximport --- misp_modules/modules/import_mod/stiximport.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/misp_modules/modules/import_mod/stiximport.py b/misp_modules/modules/import_mod/stiximport.py index d734f3d..0da0372 100755 --- a/misp_modules/modules/import_mod/stiximport.py +++ b/misp_modules/modules/import_mod/stiximport.py @@ -4,7 +4,6 @@ import re import base64 import hashlib import tempfile -import pickle misperrors = {'error': 'Error'} userConfig = {} @@ -50,9 +49,6 @@ def handler(q=False): # Load up the package into STIX package = loadPackage(package, memsize) - # Hash it - with open("/home/hward/tmp.dat", "wb") as f: - pickle.dump( package, f) # Build all the observables if package.observables: for obs in package.observables: @@ -108,6 +104,7 @@ def buildExploitTarget(et): return r + def identifyHash(hsh): """ What's that hash!?