From 267efd6ba4c0b676258424deaa7a03ce3b573ef3 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Mon, 23 Jul 2018 03:06:55 +0000 Subject: [PATCH] Fix off-by-one --- probe_netbios.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe_netbios.go b/probe_netbios.go index bd9dcbe..361776e 100644 --- a/probe_netbios.go +++ b/probe_netbios.go @@ -82,7 +82,7 @@ func (this *ProbeNetbios) ProcessReplies() { ip := raddr.(*net.UDPAddr).IP.String() - reply := this.ParseReply(buff[0 : rlen-1]) + reply := this.ParseReply(buff[0 : rlen]) if len(reply.Names) == 0 && len(reply.Addresses) == 0 { continue }