linux-pentesting-command-reference — Claude Code skill
linux-pentesting-command-reference — a skill that feeds the agent a Linux command cheat sheet for recon, service enumeration, privilege escalation and staying on the box. Handy in labs and CTFs where a one-liner beats theory.
no license 290 installs ★ 13 updated 2026-10-09
npx skills add reason-machines/security-skills --skill linux-pentesting-command-reference -a claude-codeWhat linux-pentesting-command-reference does
Commands are grouped by pentest phase: basic system handling, recon, enumeration of services and users, getting a shell, privilege escalation, persistence. What you get are one-liners tried in labs and CTFs — hunting SUID binaries, listing capabilities with getcap -r /, reading sudo -l, walking cron, spawning a reverse shell through bash, Python or netcat, upgrading a dumb TTY, serving files with python3 -m http.server.
It all lives in SKILL.md. Triggers cover questions about enumerating services on a Linux target, local recon on a host you already have a shell on, and privilege escalation. The agent pulls the matching block rather than guessing, so plain wording works fine without knowing how the notes are arranged.
Placeholders like ATTACKER_IP and PORT stay as written; your own address goes in. SUID cases point at GTFOBins, kernel work starts from uname -a plus searchsploit. A reverse shell or a hand-edited /etc/passwd comes back verbatim — the fallout is yours.
What it helps with
- find SUID binaries and files carrying capabilities
- pick a reverse shell that fits the interpreter on the box
- check what
sudo -lallows before trying anything - list cron jobs and writable directories in one pass
- send
/etc/passwdback to your own host over HTTP
Example prompts for the agent
- How do I enumerate services on this Linux target?
- Show me privilege escalation commands: SUID,
sudo -l, cron. - I have a shell on a Linux box, what local recon should I run?
How to install linux-pentesting-command-reference
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill linux-pentesting-command-reference -a claude-code2Manually: put the files in place
~/.claude/skills/linux-pentesting-command-reference/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/linux-pentesting-command-reference/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill linux-pentesting-command-reference -a codex2Manually: put the files in place
.agents/skills/linux-pentesting-command-reference/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill linux-pentesting-command-reference -a cursor2Manually: put the files in place
.cursor/skills/linux-pentesting-command-reference/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/security-skills skills/linux-pentesting-command-reference2Manually: put the files in place
.github/skills/linux-pentesting-command-reference/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill linux-pentesting-command-reference -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/security-skills --path skills/linux-pentesting-command-referenceManually: put the files in place
.devin/skills/linux-pentesting-command-reference/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill linux-pentesting-command-reference -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about linux-pentesting-command-reference
How do I install linux-pentesting-command-reference in Claude Code?
Run npx skills add reason-machines/security-skills --skill linux-pentesting-command-reference -a claude-code. The skill file lands at ~/.claude/skills/linux-pentesting-command-reference/SKILL.md.
What does linux-pentesting-command-reference do?
It hands the agent a set of Linux commands sorted by pentest phase, from recon to persistence. The agent answers with concrete commands instead of general advice.
What does the privilege escalation part rely on?
For SUID cases it sends you to GTFOBins. For kernel work it starts with uname -a and searchsploit linux kernel.