takeover

takeover is a skill for Claude Code from PentesterFlow/agent. It costs 86 tokens per session (3,522 once invoked), scanned B, original, Apache-2.0.

A security testing guide for finding subdomains whose DNS still points to an unclaimed third-party service. A subdomain is a separate address such as blog.example.com.

In plain words
What is it for?
Enumerating subdomains, checking DNS records and service fingerprints, and documenting a limited proof on domains that are explicitly in scope.
Why use it?
It helps authorized testers identify and safely prove a subdomain takeover, where someone could otherwise place content on a company's web address.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Good fit Enumerating subdomains, checking DNS records and service fingerprints, and documenting a limited proof on domains that are explicitly in scope.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pentesterflow/agent/takeover
About the project

PentesterFlow is a terminal-based AI assistant for authorized penetration testing and bug hunting, guiding analysts through reconnaissance, testing, evidence gathering, and reporting while requiring human approval for sensitive actions. Security engineers use it with local or hosted language models and real security tools, and the catalogue add-ons extend its workflows.

PentesterFlow/agent · 1,448 stars · on GitHub · pentesterflow.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PentesterFlow/agent --skill takeover
Clone the repo
git clone --depth 1 https://github.com/PentesterFlow/agent

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for takeover

README.md
[![agentmods](https://agentmods.dev/badge/skills/pentesterflow/agent/takeover/github.svg)](https://agentmods.dev/skills/pentesterflow/agent/takeover)
Your own site
<a href="https://agentmods.dev/skills/pentesterflow/agent/takeover"><img src="https://agentmods.dev/badge/skills/pentesterflow/agent/takeover/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for takeover

Your own site · 80×15
<a href="https://agentmods.dev/skills/pentesterflow/agent/takeover"><img src="https://agentmods.dev/badge/skills/pentesterflow/agent/takeover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,522 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 44
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Excessive Agency · line 143
    Skill grants unrestricted tool access without appropriate constraints. An agent with unfettered tool access can perform arbitrary actions including file modification, network requests, and code execution.
    Fix: Restrict tool access to only the tools required for the skill's stated purpose. Use an explicit allowlist rather than granting blanket access.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.03522
Opus 5.5 $0.00034 $0.01409
Sonnet 5.5 $0.00017 $0.00704
Haiku 4.5 $0.00009 $0.00352

Measured 2mo ago against content hash f569de0382d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

takeover scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

- Run any script in the page.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s 'https://crt.sh/?q=%25.target.example.com&output=json' \
skills/takeover/SKILL.md · 267 lines

How it starts

The opening of the file, as written. The whole thing — 267 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Subdomain takeover playbook

A subdomain points (via CNAME, NS, or an A record on a shared host) at a third-party service. The resource on that service was deleted, expired, or never claimed — but the DNS record still exists. An attacker registers the same resource on the provider and serves arbitrary content on the victim's hostname. Severity is usually high to critical because the takeover puts the attacker inside the victim's origin (cookie scope, CSP allowlists, OAuth redirect_uri allowlists, SAML SP entity IDs, email DKIM/SPF includes, ...).

Stay in scope. Only test takeovers against domains the program explicitly authorizes. A successful takeover is serving content on someone else's host — drop a benign HTML file (takeover proof for <handle>, contact <email>) and stop.

Execution rule: operate on real subdomains and provider fingerprints from the scoped program. Never write literal placeholders such as <provider>, <handle>, or <email> to files; ask once for proof text if a provider requires a claim page.

1. Enumerate every subdomain

Use whatever recon you have. Curl-first sources you can hit without extra tooling:

# CT logs via crt.sh
curl -s 'https://crt.sh/?q=%25.target.example.com&output=json' \
  | jq -r '.[].name_value' | sed 's/^\*\.//' | sort -u > subs.txt

# Anubis-DB
curl -s 'https://jldc.me/anubis/subdomains/target.example.com' \
  | jq -r '.[]' >> subs.txt

# Hackertarget (rate-limited)
curl -s 'https://api.hackertarget.com/hostsearch/?q=target.example.com' \
  | cut -d, -f1 >> subs.txt

sort -u subs.txt -o subs.txt

If [[recon]] is loaded, prefer those flows for the enumeration step.

2. Resolve each name — CNAME first, then A/AAAA

# Pull CNAMEs in one batch (works on macOS/Linux with dig)
while read -r sub; do
  cname=$(dig +short CNAME "$sub" | head -n1)
  if [ -n "$cname" ]; then printf '%s\tCNAME\t%s\n' "$sub" "$cname"; fi
done < subs.txt > resolved.tsv

# NS delegation (rare but high-severity)
while read -r sub; do
  ns=$(dig +short NS "$sub")
  if [ -n "$ns" ]; then printf '%s\tNS\t%s\n' "$sub" "$(echo "$ns" | tr '\n' ',')"; fi
done < subs.txt >> resolved.tsv

Read the full file on GitHub · 267 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 267 lines · 86 tokens per session scan B f569de0382d3

Subscribe to this mod's changes

takeover is a skill published in the GitHub repository PentesterFlow/agent (1,448 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 86 tokens to every session and 3,522 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 2 findings (unrestricted tool access, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

takeover compared with skills from other repositories

takeover next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
takeoverPentesterFlow/agentSkill1.4k2mo agoApache-2.0B86Claude Code
osint0dayInc/pwnSkill86todayMITA21Claude Code
cwe0dayInc/pwnSkill86todayMITA14Claude Code
penetration-testing0dayInc/pwnSkill86todayMITA26Claude Code
pwn-ai-agent-curriculum0dayInc/pwnSkill86todayMITA23Claude Code
pwn-ai-agent-loop0dayInc/pwnSkill86todayMITA20Claude Code
pwn-ai-agent-reward0dayInc/pwnSkill86todayMITA21Claude Code