mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 20:51:52 +08:00
Harden scan robustness and tests
This commit is contained in:
@@ -5,7 +5,6 @@ package services
|
||||
import (
|
||||
"bufio"
|
||||
"context"
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -88,7 +87,10 @@ func (p *IMAPPlugin) tryLogin(ctx context.Context, info *common.HostInfo, cred p
|
||||
return nil
|
||||
}
|
||||
|
||||
loginCmd := fmt.Sprintf("a001 LOGIN %s %s\r\n", cred.Username, cred.Password)
|
||||
loginCmd, err := buildIMAPLoginCommand("a001", cred.Username, cred.Password)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
if _, err := conn.Write([]byte(loginCmd)); err != nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user