CuckooDetonateFile Deprecated

Deprecated. Use the 'cuckoo-create-task-from-file' command instead.

python · Cuckoo Sandbox

Source

import demistomock as demisto  # noqa: F401
from CommonServerPython import *  # noqa: F401


def main():
    res = demisto.executeCommand("cuckoo-create-task-from-file", demisto.args())
    if isError(res[0]):
        demisto.results(res)
    else:
        taskid = demisto.get(res[0], 'Contents.task_id')
        if taskid:
            demisto.setContext('CuckooTaskID', str(taskid))
            demisto.results('Task #' + str(taskid) + " added.")
        else:
            demisto.results(res + [{"Type": entryTypes["error"],
                            "ContentsFormat": formats["text"], "Contents": 'No taskID returned.'}])


if __name__ in ('__main__', '__builtin__', 'builtins'):
    main()

README

Deprecated. Use the ‘cuckoo-create-task-from-file’ command instead.

Adds a file to the list of pending tasks. Returns the ID of the newly created task.

Script Data


Name Description
Script Type python
Tags cuckoo

Dependencies


This script uses the following commands and scripts.

  • cuckoo-create-task-from-file

Inputs


Argument Name Description
entryID The ID of the entry containing the file to detonate.
machine The label of the machine to use for analysis. (optional)
package The analysis package to be used for the analysis. (optional)
timeout The analysis timeout (in seconds). (optional)
enforce_timeout Enforces the execution for the full timeout value when enables. (optional)
platform The name of the platform to select the analysis machine from (e.g. “windows”). (optional)
tags The machine to define to start by tags. The platform must be set to use this (comma-separated). (optional)
memory Creates a full memory dump of the analysis machine when enabled. (optional)
options The options to pass to the analysis package. (optional)

Outputs


There are no outputs for this script.