Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/jessefmoore/offensive-claude-codenpx agentmods add skills/jessefmoore/offensive-claude-code/htbWrote 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.
[](https://agentmods.dev/skills/jessefmoore/offensive-claude-code/htb)<a href="https://agentmods.dev/skills/jessefmoore/offensive-claude-code/htb"><img src="https://agentmods.dev/badge/skills/jessefmoore/offensive-claude-code/htb/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.
<a href="https://agentmods.dev/skills/jessefmoore/offensive-claude-code/htb"><img src="https://agentmods.dev/badge/skills/jessefmoore/offensive-claude-code/htb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.05849 |
| Opus 5.5 | $0.00000 | $0.02340 |
| Sonnet 5.5 | $0.00000 | $0.01170 |
| Haiku 4.5 | $0.00000 | $0.00585 |
Grade C, and why
htb scanned grade C with 1 finding 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 1mo 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.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -L https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.sh | bash How it starts
The opening of the file, as written. The whole thing — 637 lines — stays where its author put it; the contents beside it link to each section on GitHub.
HTB Operator — 0xdf Methodology
Persona
Hack The Box is a single-machine environment. There is no internal network to laterally
traverse (except on Pro Labs / Fortress), no client to report to, and no engagement
window. The objective is always the same: retrieve user.txt then root.txt. Every
action is aimed at those two flags.
The 0xdf mindset:
- Enumerate everything, skip nothing. A service you dismissed as uninteresting is often the intended path. If you "quick-checked" a port, check it properly.
- Narrate the reasoning. Write down (or think through aloud) what you ran, why, what you expected, and what the result tells you. This is how you build pattern recognition that transfers to real engagements.
- Note dead ends explicitly. 0xdf's writeups document what didn't work. Knowing why a path fails is as valuable as knowing why one succeeds.
- Treat every service as potentially interesting. HTB machines are designed with an intended path; every open port is a clue. If something looks weird, it probably is.
- CTF-creative thinking. HTB machines sometimes require lateral leaps (steganography, non-obvious encoding, unusual file permissions). This is normal and expected.
- One foothold, then pivot. Unlike AD engagements, the machine usually has a single foothold path. Find it, own it, escalate. Don't try to parallelize before you have a shell.
This skill differs from the pentester skill (internal engagement persona). Use this
skill when working on a single HTB machine. Use pentester for Pro Lab / network-level
engagements (e.g., HTB Offshore, RastaLabs, Dante).
Phase 1: Initial Enumeration (always run all of these)
Full TCP Scan
Always start with -p- to catch non-standard ports. HTB machines regularly put services
on high ports (8080, 8443, 9200, 27017, etc.).
# Thorough initial scan — run first, let it cook
nmap -sC -sV -p- --min-rate 5000 -oA nmap/full <IP>
# If the above is slow (Windows machines often are), parallel approach:
rustscan -a <IP> --ulimit 5000 -- -sC -sV -oA nmap/full
# Read results: look for
# - Service versions (searchsploit immediately)
# - Unusual ports (anything > 1024 is worth noting)
# - OS detection clues (TTL, Windows SMB strings, Linux kernel)
# - Default scripts output (anonymous FTP, SMB signing, SSL cert CN)
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.
- 1mo ago First seen · 637 lines · 0 tokens per session scan F 268a850f6b4b
htb is a skill published in the GitHub repository jessefmoore/offensive-claude-code (2 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,849 tokens. A static security scan graded it C with 1 finding (downloads and executes remote code). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
hr-onboarding
A new-hire onboarding plan as a single page — first week schedule, buddy + manager intro, learning track, equipment checklist, and "you're set when…" outcomes. Use when the brief mentions "onboarding", "new hire", "first week plan", or "入职".
book-mirror
Take any book (EPUB/PDF), produce a personalized chapter-by-chapter analysis. Each chapter is preserved in detail (The Chapter) and mirrored back to the reader's actual life (The Mirror) using brain context. The mirror observes and resonates — a friend pointing out parallels, NOT a consultant rearranging the reader's…
exam-forecast
Analyze past exams from the same professor to surface patterns — subject weighting, recurring issue-spot traps, favored hypo types, policy-vs-doctrine mix — and forecast likely emphases for the upcoming exam. Use when the user says "what's on the exam", "analyze past exams", "predict the exam", or shares past exams.
lean-formalize
Develop and verify a mathematical proof in Lean, continue an incomplete Lean project, or audit whether it proves the original statement. Connect actual inputs to intermediate lemmas, assemble the target theorem, check its transitive axioms, and provide a reproducible handoff. Use when Lean is requested or a specific…
miniapp
Build a tiny interactive HTML playground only when someone asks to see, play with, or step through a mechanism.
eli5
Explain research, papers, or technical ideas in plain English with minimal jargon, concrete analogies, and clear takeaways. Use when the user says "ELI5 this", asks for a simple explanation of a paper or research result, wants jargon removed, or asks what something technically dense actually means.