Documentation Index
Fetch the complete documentation index at: https://mintlify.com/the-useless-one/pywerview/llms.txt
Use this file to discover all available pages before exploring further.
get-netsubnet queries the domain controller via LDAP to enumerate all subnet objects defined in Active Directory Sites and Services. Each subnet object associates an IP address range (in CIDR notation) with an AD site, which controls how clients locate domain controllers and how replication traffic is routed. By default the command returns only the name (the CIDR range) of each subnet; use --full-data to retrieve the full LDAP attribute set including the associated site linkage. Filtering by --sitename lets you quickly identify which IP ranges belong to a particular site, which is valuable for mapping a target organisation’s physical network layout from an AD perspective alone.
Flags
IP address of the domain controller to target.
Name of the domain to authenticate with (e.g.
contoso.com).Username used to connect to the domain controller.
Password associated with the specified username.
NTLM hashes for pass-the-hash authentication. Format:
[LMHASH:]NTHASH. The LM portion can be omitted or zeroed out.Use Kerberos authentication. Reads credentials from the ccache file pointed to by
KRB5CCNAME. Falls back to the provided username and password if no valid ticket is found.Force a TLS (LDAPS) connection to the domain controller.
Path to a certificate file for certificate-based authentication.
Path to the private key file associated with
--cert.Force SIMPLE LDAP authentication instead of the default SASL/NTLM binding.
Logging verbosity sent to stderr. Choices:
CRITICAL (default), WARNING, DEBUG, ULTRA.Print results as JSON instead of the default human-readable format.
Return only subnets associated with the specified site name. Wildcards are accepted (e.g.
London*). When omitted, subnets for all sites are returned.Domain to query. Defaults to the domain inferred from the credentials or the target DC.
Additional ADS path to restrict the LDAP search base.
Return all LDAP attributes for each subnet object. Without this flag only the subnet name (CIDR range) is returned.