Skip to content

Commit

Permalink
adding bind.version grabber
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberRoute committed Mar 25, 2024
1 parent 9bf87c1 commit 4085b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanme/grabbers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4085b6c

Please sign in to comment.