Sign inSign up

lez0sec/dnsmasq

By lez0sec

•Updated over 7 years ago

Docker container to make DNS spoofing with dnsmasq hassle free

Image
0

99

lez0sec/dnsmasq repository overview

Readme copied from https://github.com/lez0sec/dns-spoof⁠

⁠Description

Docker container to make DNS spoofing with dnsmasq hassle free

⁠Relevant Docker cheatsheet

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.

⁠Some notes

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

Tag summary

Content type

Image

Digest

Size

4.3 MB

Last updated

over 7 years ago

docker pull lez0sec/dnsmasq:0.2