Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion session/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (k KerbruteSession) HandleKerbError(err error) (bool, string) {

// handle KRB errors
if strings.Contains(eString, "KDC_ERR_WRONG_REALM") {
return false, "KDC ERROR - Wrong Realm. Try adjusting the domain? Aborting..."
return true, "KDC ERROR - Wrong Realm. Try adjusting the domain?"
}
if strings.Contains(eString, "KDC_ERR_C_PRINCIPAL_UNKNOWN") {
return true, "User does not exist"
Expand All @@ -41,6 +41,9 @@ func (k KerbruteSession) HandleKerbError(err error) (bool, string) {
if strings.Contains(eString, "KRB_AP_ERR_SKEW Clock skew too great") {
return true, "Clock skew too great"
}
if strings.Contains(eString, " KDC_Error: AS Exchange Error") {
return true, "2FA Enabled"
}

return false, eString
}
Expand Down