agentleFS
jessefmoorejessefmoore/offensive-claude-code/skills/pentester/SKILL.md

pentester

Skill2 starsChanged 6 months agoMITView on GitHub

Engagement orchestration — drives a comprehensive pentest as a decision loop (orient via kb/INDEX.md → load the phase runbook → load the domain skill → execute → validate → capture finding → re-assess next steps). Invoke at the start of any engagement/lab/HTB box, or whenever you want Claude to figure out the next move. Ties together the KB, skills, scripts, and report-writers.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Start of any engagement, HackSmarter lab, or HTB box ("start a pentest against X", "new engagement", "I'm doing HTB <box>", /pentester).

    line 19
  2. Very specific:

    Orient: Read kb/INDEX.md; map the current signal/finding to the exact technique file.

    line 33
  3. Distinctive:

    Don't scan blindly, don't invent commands when the KB has them.

    line 34
  4. Very specific:

    Execute: Prefer existing helpers in skills/scripts/ (e.g.

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pentester — Engagement Orchestration

This skill is the entry point that makes the rest of the config work together. It does not add new techniques; it sequences the ones already in kb/, skills/, skills/scripts/, and agents/ into a repeatable analyze → decide → act → capture → re-assess loop.

When to invoke

  • Start of any engagement, HackSmarter lab, or HTB box ("start a pentest against X", "new engagement", "I'm doing HTB <box>", /pentester).
  • Mid-engagement when you want the next move decided ("what's next?", "I'm stuck", "here's the output, re-assess").

Persona routing (pick one, per CLAUDE.md)

ContextPersonaSkill to loadPhase files
HackSmarter lab / real internal engagementInternal Pentester (OCD AD mindmap)skills/active-directory-attack (+ skills/netexec)kb/phases/0–5
Hack The Box machineHTB Operator (0xdf)skills/htbnmap → service enum → foothold → privesc

The loop (run this every turn)

  1. Orient. Read kb/INDEX.md; map the current signal/finding to the exact technique file. Don't scan blindly, don't invent commands when the KB has them.
  2. Load the phase runbook. Open kb/phases/<N>-<phase>.md for the current phase — it is the ordered "what to run next" list. (HTB: follow the enum→foothold→privesc flow in skills/htb.)
  3. Load the domain skill for depth + OPSEC (skills/netexec, skills/web-pentest, skills/privesc-linux, etc.).
  4. Execute. Prefer existing helpers in skills/scripts/ (e.g. ssh_cmd.py to pivot, nxc_kerberos_wrapper.py, ntds_diff.py); use exact syntax from kb/<domain>/ and kb/payloads/. Try --local-auth alongside domain auth on Windows.
  5. Validate. Confirm exploitability before claiming a finding. No proof = not a finding.
  6. Capture immediately. The moment a finding lands (creds, shell, privesc, lateral move, Kerberos abuse, ADCS, DCSync, sensitive data), invoke the right report-writer — don't batch.
  7. Re-assess. State current state + prioritized next steps; loop back to step 1.

Enumeration discipline (IppSec)

Enumerate exhaustively before exploiting. For every step state what you ran, why, what you expected, and what the result tells you. Chain small findings over chasing one big CVE. Pivot when hardened; circle back. If ≥3 nxc spray/enum patterns dry up on one identity, switch to BloodHound shortest-path (don't iterate more nxc).

Safety

Stay in authorized scope; flag out-of-scope adjacencies rather than acting. Confirm before destructive/loud actions (coercion, ADCS abuse, mass spray). Note OPSEC cost of each loud step.

Reporting hooks (which writer, when)

TriggerWriterOutput
Real / HackSmarter engagement findingsreport-writer-internalpenengagements/<client>/<date>/report.md + .html
Operator-casebook view (graph + kill-chain replay)report-writer-casebookengagements/<client>/<date>/casebook.html
HTB box write-upreport-writer-htbwriteups/htb/<slug>/ (cleartext, flags verbatim)
HackSmarter lab write-upreport-writer-hacksmarterwriteups/hacksmarter/<slug>/ (redacted, flags verbatim)

Lab/CTF write-ups stay local (writeups/, kb/writeups/, engagements/ are gitignored — HTB/ HackSmarter prohibit publishing active-machine write-ups).

Prompt templates (copy/paste)

Kickoff

Authorized internal pentest. Scope: <subnets/domains>. Model: <black/grey/white box | assumed-breach>.
Creds: <if any>. Objective: <e.g. Domain Admin>. Pivot: <e.g. ssh hsm-kali to Kali on the VPN>.

Work as the internal-pentester persona (use the `pentester` skill). First read kb/INDEX.md and the
relevant kb/phases runbook, load the matching skill (netexec / active-directory-attack), then go
phase by phase. For each step tell me what you ran, why, what you expected, and what the result
means. Enumerate exhaustively before exploiting. Capture each confirmed finding with the
report-writer. End every turn with "current state + prioritized next steps" and wait for my
go-ahead before anything destructive.

HTB kickoff

I'm doing HTB <box> at <ip> via Kali (ssh hsm-kali). Use the HTB operator persona (skills/htb).
Full nmap → enumerate every service properly → foothold → user.txt → privesc → root.txt. Narrate
what/why/expected/result each step. End with current state + next steps.

Iterate / stuck

Latest output: <paste>. Update the picture: what does this unlock, what did it rule out, and what
are the top 3 next moves ranked by likelihood? Cross-reference kb/phases (and BloodHound for AD)
before choosing. If ≥3 nxc patterns dried up on one identity, switch to BloodHound shortest-path.

Why these phrases matter

  • "Read kb/INDEX.md first" → uses the router, not guesswork.
  • "What/why/expected/result" → forces analysis over command-spraying.
  • "Enumerate exhaustively before exploiting" → prevents tunnel-vision.
  • "Current state + prioritized next steps" → turns each turn into a decision loop (the figure-out-next-steps behavior).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.