mirror of https://github.com/MISP/misp-modules
fix: [pep8] More pep8 happiness
parent
553cf44337
commit
81ffabd621
|
@ -16,7 +16,6 @@ as a cron job
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import re
|
|
||||||
|
|
||||||
from ._vmray.vmray_rest_api import VMRayRESTAPI
|
from ._vmray.vmray_rest_api import VMRayRESTAPI
|
||||||
|
|
||||||
|
@ -25,8 +24,7 @@ inputSource = []
|
||||||
moduleinfo = {'version': '0.2', 'author': 'Koen Van Impe',
|
moduleinfo = {'version': '0.2', 'author': 'Koen Van Impe',
|
||||||
'description': 'Import VMRay results',
|
'description': 'Import VMRay results',
|
||||||
'module-type': ['import']}
|
'module-type': ['import']}
|
||||||
userConfig = {
|
userConfig = {'include_analysisid': {'type': 'Boolean',
|
||||||
'include_analysisid': {'type': 'Boolean',
|
|
||||||
'message': 'Include link to VMRay analysis'
|
'message': 'Include link to VMRay analysis'
|
||||||
},
|
},
|
||||||
'include_analysisdetails': {'type': 'Boolean',
|
'include_analysisdetails': {'type': 'Boolean',
|
||||||
|
@ -53,6 +51,7 @@ moduleconfig = ['apikey', 'url', 'wait_period']
|
||||||
def handler(q=False):
|
def handler(q=False):
|
||||||
global include_analysisid, include_imphash_ssdeep, include_extracted_files, include_analysisdetails, include_vtidetails, include_static_to_ids
|
global include_analysisid, include_imphash_ssdeep, include_extracted_files, include_analysisdetails, include_vtidetails, include_static_to_ids
|
||||||
|
|
||||||
|
|
||||||
if q is False:
|
if q is False:
|
||||||
return False
|
return False
|
||||||
request = json.loads(q)
|
request = json.loads(q)
|
||||||
|
@ -183,6 +182,7 @@ def vmrayDownloadAnalysis(api, analysis_id):
|
||||||
def vmrayVti(vti):
|
def vmrayVti(vti):
|
||||||
'''VMRay Threat Identifier (VTI) rules that matched for this analysis'''
|
'''VMRay Threat Identifier (VTI) rules that matched for this analysis'''
|
||||||
|
|
||||||
|
|
||||||
if vti:
|
if vti:
|
||||||
r = {'results': []}
|
r = {'results': []}
|
||||||
for rule in vti:
|
for rule in vti:
|
||||||
|
@ -275,7 +275,7 @@ def vmrayAnalysisDetails(details, analysis_id):
|
||||||
return r
|
return r
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return false
|
return False
|
||||||
|
|
||||||
|
|
||||||
def vmrayArtifacts(patterns):
|
def vmrayArtifacts(patterns):
|
||||||
|
@ -374,7 +374,7 @@ def vmrayArtifacts(patterns):
|
||||||
return y
|
return y
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return false
|
return False
|
||||||
|
|
||||||
|
|
||||||
def vmrayCleanup(x):
|
def vmrayCleanup(x):
|
||||||
|
|
Loading…
Reference in New Issue