Skip to content

Commit

Permalink
treat password expired as success (ropnop#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ropnop authored May 19, 2019
1 parent 3992378 commit ecec221
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ func (k KerbruteSession) TestLogin(username, password string) (bool, error) {
}
err := Client.Login()
if err != nil {
if strings.Contains(err.Error(), "Password has expired") {
return true, nil
}
return false, err
}
return true, nil
Expand Down

0 comments on commit ecec221

Please sign in to comment.