danielpoliakov / lisa

Sandbox for automated Linux malware analysis.
Apache License 2.0
475 stars 91 forks source link

Changing default execution time #22

Open adliwahid opened 3 years ago

adliwahid commented 3 years ago

Is there a way to pass the 'execution time' via the API call or change the default value of execution time? thanks!

markelbsk commented 2 years ago

You can pass the 'execution time' as an argument in the POST request. Here an example in python.

import requests

myfile = {"file": yourfile}
args = {'exec_time': 300}
response = requests.post("http://localhost:4242/api/tasks/create/file",files=myfile,data=args)