Skip to content

Commit

Permalink
/victims/hostsList/
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsullivan committed Aug 3, 2022
1 parent 1bc7723 commit 810b645
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions befehl.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ func (instance *Instance) buildHostLists(hostsFilePath string) ([]string, error)
}
defer hostsFile.Close()

victims := []string{}
hostsList := []string{}

scanner := bufio.NewScanner(hostsFile)
for scanner.Scan() {
host := scanner.Text()
victims = append(victims, host)
hostsList = append(hostsList, host)
}

return victims, scanner.Err()
return hostsList, scanner.Err()
}

func (instance *Instance) getSshClientConfig() *ssh.ClientConfig {
Expand Down

0 comments on commit 810b645

Please sign in to comment.