Skip to content

feat: Single configuration source for hostname and domain #35

@MatrixEditor

Description

@MatrixEditor

As Is

Every server defines its own hostname, domain name or DNS entries. This can be tedious to configure when targeting multiple protocol servers all at once. This behavior is currently achieved by using the FQDN option - naming is not intuitive and there is no CLI option.

To Be

One single configuration attribute that can be used to specify the host's computer/hostname and domain:

# By default (fallback), the value should be defined in the [Globals] section
[Globals]

Host = "<HOSTNAME>.<DOMAIN>"
# All subsequent options should derive their values from this single configuration option:
# NetBIOSDomainName = Host.split(".", 1)[1].upper()
# DNSHostName = Host.split(".", 1)[0]
# NetBIOSName = Host.split(".", 1)[0][:15].upper()
# DNSDomainName = Host.split(".", 1)[1].lower()

There should be a CLI option too:

sudo dementor -I eth0 -H DC01.contoso.lab
# or
sudo dementor -I eth0 -O Host="DC01.contoso.lab"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Protocol: HTTPErrors/Features related to the HTTP serverProtocol: IMAP/POP3/SMTPErrors/Features related to the IMAP/POP3/SMTP serverProtocol: LDAPErrors/Features related to the LDAP serverProtocol: LLMNR/mDNS/NetBIOSErrors/Features related to the LLMNR/mDNS/NetBIOS poisonerProtocol: NTLMErrors/Features related to NTLMProtocol: SMBErrors/Features related to the SMB serverType - Enhancement

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions