mirror of https://github.com/MISP/misp-modules
Removed useless pickle storage of stiximport
parent
4e3300d66c
commit
0521833c65
|
@ -4,7 +4,6 @@ import re
|
||||||
import base64
|
import base64
|
||||||
import hashlib
|
import hashlib
|
||||||
import tempfile
|
import tempfile
|
||||||
import pickle
|
|
||||||
|
|
||||||
misperrors = {'error': 'Error'}
|
misperrors = {'error': 'Error'}
|
||||||
userConfig = {}
|
userConfig = {}
|
||||||
|
@ -50,9 +49,6 @@ def handler(q=False):
|
||||||
# Load up the package into STIX
|
# Load up the package into STIX
|
||||||
package = loadPackage(package, memsize)
|
package = loadPackage(package, memsize)
|
||||||
|
|
||||||
# Hash it
|
|
||||||
with open("/home/hward/tmp.dat", "wb") as f:
|
|
||||||
pickle.dump( package, f)
|
|
||||||
# Build all the observables
|
# Build all the observables
|
||||||
if package.observables:
|
if package.observables:
|
||||||
for obs in package.observables:
|
for obs in package.observables:
|
||||||
|
@ -108,6 +104,7 @@ def buildExploitTarget(et):
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def identifyHash(hsh):
|
def identifyHash(hsh):
|
||||||
"""
|
"""
|
||||||
What's that hash!?
|
What's that hash!?
|
||||||
|
|
Loading…
Reference in New Issue