Projects STRLCPY goc2 Commits e784633a
🤬
  • ■ ■ ■ ■ ■
    pkg/cli/cli.go
    skipped 236 lines
    237 237   break
    238 238   }
    239 239   
    240  - cmdid := sendCommand(cmdString, agent, c2)
    241  - deadline := time.Now().Add(15 * time.Second)
     240 + var cmdid string
     241 + var deadline time.Time
     242 + if cmdString == "portscan" {
     243 + cmdid = sendCommand(cmdString, agent, c2)
     244 + deadline = time.Now().Add(120 * time.Second)
     245 + } else {
     246 + cmdid = sendCommand(cmdString, agent, c2)
     247 + deadline = time.Now().Add(15 * time.Second)
     248 + }
    242 249   for {
    243 250   id, output := getOutput(c2+"/api/cmd/output/"+agent+"/"+cmdid, c2, cmdid)
    244 251   sDec, _ := base64.StdEncoding.DecodeString(output)
    skipped 294 lines
Please wait...
Page is in error, reload to recover