Skip to content

Commit

Permalink
Add a check to avoid panic
Browse files Browse the repository at this point in the history
  • Loading branch information
nodauf committed Jan 13, 2022
1 parent c85d941 commit b54c55c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/o365/userEnum.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ func (options *Options) UserEnum() []string {
go func(i int) {
defer wg.Done()
for email := range queue {
if len(strings.Split(email, "@")) == 1 {
options.Log.Fail(email + " is not an email")
continue
}
domain := strings.Split(email, "@")[1]
// If we didn't already checked the domain
mux.Lock()
Expand Down

0 comments on commit b54c55c

Please sign in to comment.