Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed MFA message #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
10 changes: 8 additions & 2 deletions Go365.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,12 @@ func doTheStuffGraph(un string, pw string, prox string) (string, color.Attribute
} else if strings.Contains(x, "50057") {
returnString = "[graph] [-] Account disabled: " + un
returnColor = color.FgMagenta
} else if strings.Contains(x, "50076") || strings.Contains(x, "50079") {
} else if strings.Contains(x, "50076") {
returnString = "[graph] [+] Possible valid login, MFA required. " + un + " : " + pw
returnColor = color.FgGreen
} else if strings.Contains(x, "50079") {
returnString = "[graph] [+] Valid login, user must enroll in MFA. " + un + " : " + pw
returnColor = color.FgGreen
} else if strings.Contains(x, "53004") {
returnString = "[graph] [+] Possible valid login, user must enroll in MFA. " + un + " : " + pw
returnColor = color.FgGreen
Expand Down Expand Up @@ -390,9 +393,12 @@ func doTheStuffRst(un string, pw string, prox string) (string, color.Attribute)
} else if strings.Contains(x.Text(), "AADSTS50057") {
returnString = "[rst] [-] Account disabled: " + un
returnColor = color.FgMagenta
} else if strings.Contains(x.Text(), "AADSTS50076") || strings.Contains(x.Text(), "AADSTS50079") {
} else if strings.Contains(x.Text(), "AADSTS50076") {
returnString = "[rst] [+] Possible valid login, MFA required. " + un + " : " + pw
returnColor = color.FgGreen
} else if strings.Contains(x.Text(), "AADSTS50079") {
returnString = "[rst] [+] Valid login, user must enroll in MFA. " + un + " : " + pw
returnColor = color.FgGreen
} else if strings.Contains(x.Text(), "AADSTS53004") {
returnString = "[rst] [+] Possible valid login, user must enroll in MFA. " + un + " : " + pw
returnColor = color.FgGreen
Expand Down