Skip to content

Commit

Permalink
Update exploit.go (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamg authored Mar 9, 2022
1 parent dfb50d3 commit 82a43e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/exploits/cve20220847/exploit.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (v *cve20220847Exploit) Exploit(ctx context.Context, s *state.State, log lo
found = true
if parts[3] != "" {
users := strings.Split(parts[3], ",")
var canAdd bool
canAdd := true
for _, existing := range users {
if existing == u.Username {
log.Printf("NOTE: Your user is already in the %s group - you can likely sudo already...", parts[0])
Expand Down

0 comments on commit 82a43e3

Please sign in to comment.