Skip to content

Commit

Permalink
make kerberoasting not write empty file
Browse files Browse the repository at this point in the history
  • Loading branch information
5amu committed Feb 20, 2024
1 parent fb4ef87 commit 6f2162c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/goad/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,13 @@ func (o *LdapOptions) kerberoast(target string) {
return
}

if len(hashes) == 0 {
return
}
prt.Store("Saving hashes to", o.Hashes.Kerberoast)
err = utils.WriteLines(hashes, o.Hashes.Kerberoast)
if err != nil {
prt.StoreFailure(err.Error())
return
}
}

Expand Down

0 comments on commit 6f2162c

Please sign in to comment.