Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
goldig — Execute commands on Windows via malicious TXT DNS records | Kitploit
Tools/GitLabGitLab/rtfmkiesel/goldig
Payload GenerationExploitationPenetration TestingCommand and ControlRed TeamingDNS AnalysisArchived
GitLabrtfmkiesel/goldig

goldig

Execute commands on Windows via malicious TXT DNS records

View Repository
3 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Project moved to github.com/rtfmkiesel/goldig

goldig

Execute commands on Windows via DNS records.

This utility will create a DNS server and serve a malicious TXT record. Just copy & paste the command from the console output into your Windows shell.

Usage

root@kitploit:~
usage: goldig [OPTIONS]

Options:
    -i 	Interface to bind to (default: eth0)
    -c 	Command to serve (default: calc.exe)
    -h 	Shows this text

Installation

root@kitploit:~
go install gitlab.com/rtfmkiesel/goldig@latest

Build from source

root@kitploit:~
git clone https://gitlab.com/rtfmkiesel/goldig
cd goldig
# to build binary in the current directory
go build -ldflags="-s -w" .
# to build & install binary into GOPATH/bin
go install .

Why

This was made for all the people who don't want to buy a domain to test this attack or just want to run this internally. Be aware when accessing this externally that larger corporations will often block external DNS servers or external DNS traffic altogether. In such cases you have to buy a domain and setup a public DNS record.

Kudos

  • Alh4zr3d for the tweet that started it this
  • phuslu for the fastdns library
  • I_Am_Jakoby for the "> 255 char" payload

Legal

This code is provided for educational use only. If you engage in any illegal activity the author does not take any responsibility for it. By using this code, you agree with these terms.

Download Tool