def dotransform(request, response, config): if 'taskid' in request.fields: task = request.fields['taskid'] else: task = request.value target = target_info(report(task))['file'] response += CuckooHash(target['sha1'].decode('ascii'), taskid=task) return response
def dotransform(request, response, config): fname = request.value if 'taskid' in request.fields: task = request.fields['taskid'] else: task = request.value dropped = dropped_files(report(task)) for d in dropped: if d['name'] == fname: response += CuckooHash(d['md5'].decode('ascii')) return response