From 4085b6cf5a355cec8b6e89884f629e546336d761 Mon Sep 17 00:00:00 2001 From: CyberRoute Date: Mon, 25 Mar 2024 15:01:32 +0100 Subject: [PATCH] adding bind.version grabber --- scanme/grabbers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanme/grabbers.go b/scanme/grabbers.go index 5c25f79..390b963 100644 --- a/scanme/grabbers.go +++ b/scanme/grabbers.go @@ -116,7 +116,7 @@ func GetDNSBanner(ipAddress string, port int) (string, error) { c := new(dns.Client) m := new(dns.Msg) m.Question = make([]dns.Question, 1) - m.Question[0] = dns.Question{"version.bind.", dns.TypeTXT, dns.ClassCHAOS} + m.Question[0] = dns.Question{Name: "version.bind.", Qtype: dns.TypeTXT, Qclass: dns.ClassCHAOS} addr := fmt.Sprintf("%s:%d", ipAddress, port) in, _, err := c.Exchange(m, addr)