mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 05:01:53 +08:00
Harden scan robustness and tests
This commit is contained in:
@@ -76,9 +76,7 @@ func parseTFTPResponse(data []byte) (string, bool) {
|
||||
return "TFTP DATA response", true
|
||||
case 0x05:
|
||||
msg := strings.TrimRight(string(data[4:]), "\x00")
|
||||
if len(msg) > 160 {
|
||||
msg = msg[:160]
|
||||
}
|
||||
msg = truncateRunes(msg, 160)
|
||||
if msg == "" {
|
||||
msg = "error response"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user