Skip to content

Commit

Permalink
[*]修复一个Redis协议爆破的bug,之前可能会存在误报
Browse files Browse the repository at this point in the history
  • Loading branch information
lcvvvv committed Feb 15, 2023
1 parent d7b8b88 commit 286fdb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/hydra/redis/redis.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package redis

import (
"errors"
"fmt"
"net"
"strings"
Expand Down Expand Up @@ -28,7 +29,7 @@ func Check(Host, Password string, Port int) error {
return err
}
if strings.Contains(reply, "+OK") == false {
return err
return errors.New("login failed")
}
return nil
}
Expand Down

0 comments on commit 286fdb0

Please sign in to comment.