Skip to content

Commit b54c55c

Browse files
committed
Add a check to avoid panic
1 parent c85d941 commit b54c55c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/o365/userEnum.go

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ func (options *Options) UserEnum() []string {
2222
go func(i int) {
2323
defer wg.Done()
2424
for email := range queue {
25+
if len(strings.Split(email, "@")) == 1 {
26+
options.Log.Fail(email + " is not an email")
27+
continue
28+
}
2529
domain := strings.Split(email, "@")[1]
2630
// If we didn't already checked the domain
2731
mux.Lock()

0 commit comments

Comments
 (0)