Skip to content

zerogod

This module is a DNS-SD / mDNS / Bonjour / Zeroconf module for device discovery, service spoofing, and impersonation.

It allows you to scan the local network for mDNS services, impersonate discovered services, and advertise custom services.

Start DNS-SD / mDNS discovery.

Stop DNS-SD / mDNS discovery.

Show discovered services given an ADDRESS.

Show discovered services and DNS records given an ADDRESS.

Save the mDNS information of a given ADDRESS in the FILENAME yaml file.

Start advertising the mDNS services from the FILENAME yaml file.

To stop advertising, use:

Terminal window
zerogod.advertise off

Impersonate the specified ADDRESS by advertising the same services it exposes.
This command automatically captures service data from the target, stores it in a temporary YAML file, and starts advertising it.

To stop impersonation, use:

Terminal window
zerogod.impersonate off
ParameterDefaultDescription
zerogod.advertise.certificate~/.bettercap-zerogod.cert.pemTLS certificate file (will be auto generated if filled but not existing) to use for advertised TCP services.
zerogod.advertise.key~/.bettercap-zerogod.key.pemTLS key file (will be auto generated if filled but not existing) to use for advertised TCP services.
zerogod.ipp.save_path~/.bettercap/zerogod/documents/If an IPP acceptor is started, this setting defines where to save documents received for printing.
zerogod.verbosefalseLog every mDNS query.

Start the mDNS discovery:

Terminal window
zerogod.discovery on

Stop discovery:

Terminal window
zerogod.discovery off
Terminal window
zerogod.show 192.168.1.42

Show all available records (including DNS details):

Terminal window
zerogod.show-full 192.168.1.42

Save the discovered data for a given IP to a YAML file:

Terminal window
zerogod.save 192.168.1.42 target-services.yml

Load and advertise previously saved services:

Terminal window
zerogod.advertise target-services.yml

Stop advertising:

Terminal window
zerogod.advertise off

Impersonate all services of a device with a given IP:

Terminal window
zerogod.impersonate 192.168.1.42

Stop impersonation:

Terminal window
zerogod.impersonate off