# /tasks/create/submit

**POST /tasks/create/submit**

Bir veya daha fazla dosyayı ve/veya arşivlere gömülü dosyaları veya yeni oluşturulan görev(ler)in görev ID'lerini içeren bir satırda ayrılmış URL/hash'lerin listesini bekleyen görevlere ekler. Gönderi ID'sini ve yeni oluşturulan görev(ler)in görev ID'lerini döndürür.

Örnek request:

> \# Submit two executables.  
> curl -H "Authorization: Bearer S4MPL3" http://localhost:8090/tasks/create/submit -F files=@1.exe -F files=@2.exe
> 
> \# Submit http://google.com  
> curl -H "Authorization: Bearer S4MPL3" http://localhost:8090/tasks/create/submit -F strings=google.com
> 
> \# Submit http://google.com &amp; http://facebook.com  
> curl -H "Authorization: Bearer S4MPL3" http://localhost:8090/tasks/create/submit -F strings=$'google.com\\nfacebook.com'

Python kullanılan örnek request:

> import requests
> 
> HEADERS = {"Authorization": "Bearer S4MPL3"}
> 
> \# Submit one or more files.  
> r = requests.post("http://localhost:8090/tasks/create/submit", files=\[  
>  ("files", open("1.exe", "rb")),  
>  ("files", open("2.exe", "rb")),  
> \], headers=HEADERS)
> 
> \# Add your code to error checking for r.status\_code.
> 
> submit\_id = r.json()\["submit\_id"\]  
> task\_ids = r.json()\["task\_ids"\]  
> errors = r.json()\["errors"\]
> 
> \# Add your code to error checking on "errors".
> 
> \# Submit one or more URLs or hashes.  
> urls = \[  
>  "google.com", "facebook.com", "cuckoosandbox.org",  
> \]  
> r = requests.post(  
>  "http://localhost:8090/tasks/create/submit",  
>  headers=HEADERS,  
>  data={"strings": "\\n".join(urls)}  
> )

Örnek response:

> {  
>  "submit\_id": 1,  
>  "task\_ids": \[1, 2\],  
>  "errors": \[\]  
> }

Form parametreleri:

- file (isteğe bağlı) - /tasks/create/file için eski isimle uyumluluk
- files (isteğe bağlı) - kontrol edilecek örnek(ler) ve bekleme sıramıza eklenen örnek(ler)
- strings (isteğe bağlı) - URL'ler ve/veya hash'lerin (VirusTotal API anahtarınızı kullanarak elde edilecek) satırda ayrılmış listesi
- timeout (isteğe bağlı) (int) - analiz süresi sınırlaması (saniye cinsinden)
- priority (isteğe bağlı) (int) - göreve atılacak öncelik (1-3)
- options (isteğe bağlı) - analiz paketi için iletilmesi gereken seçenekler
- tags (isteğe bağlı) - etiketlere göre makine belirtme. Platformun kullanılması gerekiyor. Etiketler virgülle ayrılır
- custom (isteğe bağlı) - analiz ve işleme/bildirime geçirilmek üzere özel dize
- owner (isteğe bağlı) - aynı cuckoo örneğine birden fazla kullanıcının dosya göndermesine izin veriliyorsa görev sahibi
- memory (isteğe bağlı) - analiz makinesinin tam bellek dökümü oluşturmayı etkinleştirme
- enforce\_timeout (isteğe bağlı) - yürütmenin tam zaman aşımı değerini zorlamak için etkinleştirme
- clock (isteğe bağlı) - sanal makine saatinin ayarlanması (format %m-%d-%Y %H:%M:%S)

Status kodları:

- 200 - hata yok