Small change to the skeleton export

pull/40/head
iglocska 6 years ago
parent 0c3a9d66ea
commit c3a3d68e43
  1. 3
      misp_modules/modules/export/testexport.py

@ -22,8 +22,6 @@ moduleinfo = {'version': '0.1', 'author': 'Andras Iklody',
'description': 'Skeleton export module',
'module-type': ['export']}
moduleconfig = []
def handler(q=False):
if q is False:
@ -31,7 +29,6 @@ def handler(q=False):
r = {'results': []}
result = json.loads(q)
output = ''; # Insert your magic here!
output = result["data"][0]["Event"]["info"]
r = {"data":base64.b64encode(output.encode('utf-8')).decode('utf-8')}
return r

Loading…
Cancel
Save