CuckooDetonateURL Deprecated

Deprecated. Use 'cuckoo-create-task-from-url' 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-url", 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 ‘cuckoo-create-task-from-url’ instead.

Detonates a URL in the Cuckoo sandbox.

Script Data


Name Description
Script Type python
Tags cuckoo

Dependencies


This script uses the following commands and scripts.

  • cuckoo-create-task-from-url

Inputs


Argument Name Description
url The URL to check.

Outputs


There are no outputs for this script.