Add new task ID

This commit is contained in:
ConfusedPolarBear 2022-11-25 00:41:48 -06:00
parent ae16603aee
commit 3e2dc377b7

View File

@ -113,11 +113,13 @@ func runAnalysisAndWait(hostAddress, apiKey string, pollInterval time.Duration)
SendRequest("POST", hostAddress+"/Intros/EraseTimestamps", apiKey) SendRequest("POST", hostAddress+"/Intros/EraseTimestamps", apiKey)
fmt.Println() fmt.Println()
// The task ID changed with v0.1.7. var taskIds = []string{
// Old task ID: 8863329048cc357f7dfebf080f2fe204 "f64d8ad58e3d7b98548e1a07697eb100", // v0.1.8
// New task ID: 6adda26c5261c40e8fa4a7e7df568be2 "8863329048cc357f7dfebf080f2fe204",
"6adda26c5261c40e8fa4a7e7df568be2"}
fmt.Println("[+] Starting analysis task") fmt.Println("[+] Starting analysis task")
for _, id := range []string{"8863329048cc357f7dfebf080f2fe204", "6adda26c5261c40e8fa4a7e7df568be2"} { for _, id := range taskIds {
body := SendRequest("POST", hostAddress+"/ScheduledTasks/Running/"+id, apiKey) body := SendRequest("POST", hostAddress+"/ScheduledTasks/Running/"+id, apiKey)
fmt.Println() fmt.Println()