Add 3 seconds delay before accepting telnet inputs to avoid bruteforce attacks

This commit is contained in:
Yohann D'ANELLO 2020-10-13 11:28:29 +02:00
parent 0055b73917
commit 88c4a037cb
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ func Serve(config *Options) {
return
}
// Avoid bruteforce
time.Sleep(3 * time.Second)
streamID = string(buff[:n])
streamID = strings.Replace(streamID, "\r", "", -1)
streamID = strings.Replace(streamID, "\n", "", -1)