# linux-pentesting-command-reference

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 290 installs · ★ 13 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/security-skills/tree/HEAD/skills/linux-pentesting-command-reference/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/linux-pentesting-command-reference

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill linux-pentesting-command-reference -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/linux-pentesting-command-reference/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/linux-pentesting-command-reference/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill linux-pentesting-command-reference -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/linux-pentesting-command-reference/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill linux-pentesting-command-reference -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/linux-pentesting-command-reference/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/security-skills skills/linux-pentesting-command-reference
```

2. **Manually: put the files in place**
- File: `.github/skills/linux-pentesting-command-reference/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill linux-pentesting-command-reference -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/security-skills --path skills/linux-pentesting-command-reference
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/linux-pentesting-command-reference/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/security-skills --skill linux-pentesting-command-reference -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/security-skills/tree/HEAD/skills/linux-pentesting-command-reference/SKILL.md

## When to use it
- find SUID binaries and files carrying capabilities
- pick a reverse shell that fits the interpreter on the box
- check what `sudo -l` allows before trying anything
- list cron jobs and writable directories in one pass
- send `/etc/passwd` back to your own host over HTTP

## Example prompts
- 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?

## Similar
- [ios-pentesting-tricks](https://affpapa.org/en/nevibecode/skills/ios-pentesting-tricks.md) — skill · 4100 installs
- [kubernetes-pentesting](https://affpapa.org/en/nevibecode/skills/kubernetes-pentesting.md) — skill · 4100 installs
- [pentesting-with-aws-security-agent](https://affpapa.org/en/nevibecode/skills/pentesting-with-aws-security-agent.md) — skill · 1700 installs
- [sqlmap-database-pentesting](https://affpapa.org/en/nevibecode/skills/sqlmap-database-pentesting.md) — skill · 116 installs
- [privilege-escalation-methods](https://affpapa.org/en/nevibecode/skills/privilege-escalation-methods.md) — skill · ★ 4719 repo stars
- [privesc-advisor](https://affpapa.org/en/nevibecode/agents/privesc-advisor.md) — subagent · ★ 2482 repo stars

From the same set: [reason-machines/security-skills](https://affpapa.org/en/nevibecode/by/reason-machines/security-skills.md) — 129 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
