diff --git a/cmd/scan.go b/cmd/scan.go index 95c6965..b7043df 100644 --- a/cmd/scan.go +++ b/cmd/scan.go @@ -68,7 +68,7 @@ func Scan(url string, timeout time.Duration, threads int, logdir string) { continue } - sanitizedRobot := strings.Split(robot, ": ")[1] + _, sanitizedRobot, _ := strings.Cut(robot, ": ") log.Debugf("%s", robot) resp, err := client.Get(url + "/" + sanitizedRobot) if err != nil {