Dnscat2 - Tool that uses DNS protocol to send data between two hosts.
Sends data inside TXT records within the DNS protocol.
Dnscat2 can be extremely stealthy while evading firewall detection.
Installation
To download server:
To download client:
Dnscat2 - Server
Let’s start dnscat2 server on our attacker host:
Secret Key is provided which we have to use on dnscat2 client on Windows target host.
On target Windows host, we either need dnscat2 project client or dnscat2-powershell.
Dnscat2 - Client
After downloading the client (dnscat2.ps1), we transfer it to the target windows host.
Now that we have dnscat.ps1 on the target, let’s import it:
Let’s establish a tunnel with the server running on attacker host:s
Sessions Established
If all steps are completed successfully, we will have a session established on attacker server:
There are many options:
Session Interaction