subdomain-takeover

Detect and exploit subdomain takeovers via unclaimed CNAME, NS, and MX records.

120|8|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/Prohao42/aimy-skill --skill subdomain-takeover-prohao42
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subdomain-takeover
Source: https://github.com/Prohao42/aimy-skill/tree/main/ai-mian/hack-skills/skills/subdomain-takeover
Command: npx skills add https://github.com/Prohao42/aimy-skill --skill subdomain-takeover-prohao42

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies and exploits subdomain takeovers, allowing control over a domain by taking advantage of unclaimed resources.

Core Features & Use Cases

  • Subdomain Enumeration: Identifies subdomains with CNAME, NS, or MX records pointing to unclaimed resources.
  • Provider Fingerprinting: Matches error responses from CNAME targets against known provider fingerprints.
  • Takeover Procedures: Provides step-by-step instructions for claiming resources on various providers.
  • NS and MX Takeover: Detects and exploits NS and MX records pointing to deprovisioned services.
  • Wildcard DNS Risks: Identifies wildcard CNAMEs that can lead to mass subdomain takeovers.
  • Use Case: An attacker uses this Skill to find and claim a subdomain of a target company, gaining control over the domain and its resources.

Quick Start

Run the subdomain-takeover skill to scan for subdomain takeovers on the target domain 'example.com'.

Frequently Asked Questions about subdomain-takeover

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect subdomain takeover vulnerabilities during penetration testing?

Subdomain takeover occurs when DNS records point to deprovisioned or unclaimed third-party resources. Attackers exploit this by claiming the dangling resource, gaining control over the target subdomain to host malicious content or intercept traffic.

How do I exploit NS and MX record takeovers for deprovisioned services?

Exploiting NS and MX record takeovers involves detecting records that point to deprovisioned services and executing provider-specific takeover procedures. This allows you to claim the authoritative nameserver or mail handling resources for the target domain.

What is the best way to identify wildcard DNS risks for mass subdomain takeovers?

The best way to identify wildcard DNS risks is to scan for wildcard CNAMEs that resolve to unclaimed resources. This process reveals mass subdomain takeover opportunities where a single misconfigured wildcard record exposes multiple subdomains.

Does subdomain takeover scanning work with provider fingerprinting for unclaimed resources?

Yes, subdomain takeover scanning relies on provider fingerprinting by matching error responses from CNAME targets against known provider fingerprints. This confirms whether a specific cloud service or hosting provider has an unclaimed resource vulnerable to takeover.

Can I use this Skill for offensive security and domain control scenarios?

Yes, you can use this Skill for offensive security and domain control scenarios. It provides step-by-step takeover procedures for claiming unclaimed resources, enabling an attacker to gain full control over a target company's subdomain and its associated resources.