Exemplo n.º 1
0
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
Exemplo n.º 2
0
def dotransform(request, response, config):

    if 'taskid' in request.fields:
        task = request.fields['taskid']
    else:
        task = request.value

    target = target_info(report(task))

    response += CuckooMalwareFilename(
                target['file']['name'].decode('ascii'),
                taskid=task)

    return response