Docker container to make DNS spoofing with dnsmasq hassle free
99
Readme copied from https://github.com/lez0sec/dns-spoof
Docker container to make DNS spoofing with dnsmasq hassle free
If you don't use Docker too often and tend to forget the commands, these can come in quite handy.
Build docker file locally:
docker build -t "dns_spoof" /path/to/directory/containing/dockerfile
Build image from Docker Hub:
docker pull lez0sec/dnsmasq
Run container:
docker run --rm -it -p <ip_to_bind_to>:53:53/tcp -p <ip_to_bind_to>:53:53/udp -v "$spoofed_hosts:/etc/dnsmasq.d/wildcards:ro" --cap-add=NET_ADMIN lez0sec/dnsmasq
Alternatively you can use the wrapper script spoofscript.sh to run the container.
In order to disable the existing local name resolution service (although you don't really need this unless you want to bind to localhost):
sudo systemctl stop systemd-resolved.service
Content type
Image
Digest
Size
4.3 MB
Last updated
over 7 years ago
docker pull lez0sec/dnsmasq:0.2