- Have a domain name
- Have a VM with a public IP (GCP, AWS, Azure works fine)
- The
SLACK_HOOKenv var/flag can be used to specify where to post a lookup attempt - The
DISCORD_HOOKenv var/flag can be used to specify where to post a lookup attempt - The
BIND_ADDRenv var/flag can be used to specify which address to bind to
-
We need to delegate the zone so that all DNS requests are routed to our server (I suggest using cloudflare)
- Add an A record pointing to your VM for example
ns1.x.com - Add an NS record for example
exfil.x.compointing to the A record you just created (ns1.x.com)
- Add an A record pointing to your VM for example
-
Make sure port 53 is not used on your VM (
sudo lsof -i :53) -
If something is running on port 53 (usually
systemd-resolve) then do the following:- Stop
systemd-resolvedby runningsudo systemctl stop systemd-resolved - Edit
/etc/systemd/resolved.confand uncomment and setDNSStubListener=noandDNS=8.8.8.8 - Start
systemd-resolvedby runningsudo systemctl start systemd-resolved
- Stop
-
Run dns_exfil:
sudo dns_exfil -
Results will be written in the console