A DNS reconnaissance tool for uncovering SRV records with precision. From LDAP servers to Kerberos guardians and certificate authorities, SRVHunter resolves hostnames, digs up IPs, and ensures no SRV is left in the shadows. Perfect for pentesters, sysadmins, and curious minds on a DNS quest. π πΌ π
- Queries a comprehensive list of SRV records for various services, including:
- LDAP, Kerberos, NTP, and PKI/CA services.
- Resolves hostnames and retrieves corresponding IP addresses.
- Handles DNS errors gracefully, providing actionable feedback.
- Customizable with options for specific nameservers and site names.
- Outputs results in a clean and structured format.
-
Clone the repository:
git clone https://github.com/yourusername/srvhunter.git cd srvhunter
-
Install dependencies:
pip install -r requirements.txt
-
Run the script:
python srvhunter.py -d example.com
Run the tool with the following options:
python srvhunter.py [options] -d domain.com
Option | Description |
---|---|
-n, --nameservers |
Comma-separated list of nameservers to query. |
-d, --domain |
The target domain for SRV record lookups. |
-s, --sitename |
Optional site name for site-specific queries. |
Query SRV records for acme.local
using local DNS servers:
python srvhunter.py -n "10.0.0.1,10.0.0.2" -d acme.local
Here's an example of SRVHunter in action:
SRVHunter queries the following SRV records:
_ldap._tcp
_ldap._tcp.dc._msdcs
_ldap._tcp.gc._msdcs
_kerberos._tcp
_kerberos._tcp.dc._msdcs
_kerberos._udp
_kpasswd._tcp
_kpasswd._udp
_ldap._tcp.pdc._msdcs
_ldap._tcp.dfsr._msdcs
_ntp._udp
_certauth._tcp
_certsrv._tcp
_certenroll._tcp
_ldap._tcp.<SiteName>._sites
_ldap._tcp.<SiteName>._sites.gc._msdcs
Contributions are welcome! If you'd like to improve SRVHunter, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Built with π» and π§ by azw / austinzwile.
- Inspired by the need for effective DNS reconnaissance in pentesting.
- The whole offensive security community which helped me get to where I am today. π