Skip to content

Commit 4df1aea

Browse files
committed
Fix log level
1 parent 64de983 commit 4df1aea

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/modules/azure/userEnum.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ func UserEnum(optionsInterface *interface{}, username string) bool {
107107
case "AADSTS50076": // Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access
108108
options.Log.Info(username + " MFA needed")
109109
case "AADSTS700016":
110-
options.Log.Fail(username + " The application wasn't found in the directory/tenant")
110+
options.Log.Error(username + " The application wasn't found in the directory/tenant")
111111
case "AADSTS50034": // UserAccountNotFound - To sign into this application, the account must be added to the directory.
112112
options.Log.Fail(username + " does not exist")
113113
case "AADSTS90002":
114-
options.Log.Fail("The Tenant '" + domain + "' does not exist")
114+
options.Log.Error("The Tenant '" + domain + "' does not exist")
115115
default:
116116
options.Log.Error("Unknow error: " + structResponseAzure.Body.Fault.Detail.Error.Internalerror.Text)
117117

src/modules/o365/utils.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ func (options *Options) enumOauth2(username string) bool {
158158
options.Log.Success(username + " and " + password + " matched but the account is disabled")
159159
valid = true
160160
case "AADSTS700016":
161-
options.Log.Fail(username + " The application wasn't found in the directory/tenant")
161+
options.Log.Error(username + " The application wasn't found in the directory/tenant")
162162
case "AADSTS50034": // UserAccountNotFound - To sign into this application, the account must be added to the directory.
163163
options.Log.Fail(username + " does not exist")
164164
case "AADSTS90002":
165-
options.Log.Fail("The Tenant '" + username + "' does not exist")
165+
options.Log.Error("The Tenant '" + username + "' does not exist")
166166
default:
167167
options.Log.Error("Unknow error: " + respStruct.ErrorDescription)
168168

@@ -198,19 +198,19 @@ func (options *Options) bruteOauth2(username, password string) (bool, error) {
198198
options.Log.Success(username + " exists but there is no password")
199199
valid = true
200200
case "AADSTS50014":
201-
options.Log.Fail(username + " exists but max passthru auth time exceeded")
201+
options.Log.Error(username + " exists but max passthru auth time exceeded")
202202
case "AADSTS50076": // Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access
203203
options.Log.Info(username + " MFA needed")
204204
valid = true
205205
case "AADSTS50057":
206206
options.Log.Info(username + " and " + password + " matched but the account is disabled")
207207
valid = true
208208
case "AADSTS700016":
209-
options.Log.Fail(username + " The application wasn't found in the directory/tenant")
209+
options.Log.Error(username + " The application wasn't found in the directory/tenant")
210210
case "AADSTS50034": // UserAccountNotFound - To sign into this application, the account must be added to the directory.
211211
options.Log.Fail(username + " does not exist")
212212
case "AADSTS90002":
213-
options.Log.Fail("The Tenant '" + username + "' does not exist")
213+
options.Log.Error("The Tenant '" + username + "' does not exist")
214214
default:
215215
options.Log.Error("Unknow error: " + respStruct.ErrorDescription)
216216

0 commit comments

Comments
 (0)