跳到正文
FunCoding

post-exploit-phase

Post-exploitation gotchas — credential dump order, DPAPI trap, host exhaustion checklist. Use when the current phase is POST_EXPLOIT.

Star
1,278
分类
安全
许可证
MIT
最近提交
2026年11月30日

skills/phases/post-exploit/SKILL.md

在 GitHub 上查看

Post-Exploitation — What You'll Get Wrong

Credential dump ORDER matters (Windows)

Run ALL three, in this order — each extracts different secrets:

  1. --sam — local account hashes
  2. --lsa — service passwords, cached domain creds, DPAPI system keys
  3. --dpapi — browser passwords, vault, cookies, Credential Manager

On Domain Controllers add --ntds for all domain hashes. Fallback: secretsdump.py DOMAIN/USER:PASS@HOST (SAM+LSA+NTDS in one shot).

DPAPI trap

netexec smb HOST -u USER -p PASS --dpapi with NO subcommands = full dump. Adding subcommands (cookies, nosystem, wifi) LIMITS output. Always bare --dpapi first.

Host Exhaustion — do NOT skip any host

Before a host is "done", ALL of these must be attempted:

  • Privesc check (sudo -l / whoami /priv / SUID / kernel version)
  • Credentials dumped (SAM+LSA+DPAPI on Windows, shadow/keys/history/configs on Linux)
  • Found creds sprayed across ALL known hosts+services
  • Network config enumerated (arp, routes, internal DNS) — may reveal hidden subnets
  • Internal services discovered (ss -tlnp / netstat) — ports not visible externally
  • Stored creds checked (autologon, cmdkey, env vars, browser profiles)

Linux credential locations you'll miss

  • /home/*/.bash_history — often contains passwords in commands
  • App configs: .env, *.conf, *.cfg, *.ini — DB passwords, API keys
  • SSH keys: ~/.ssh/ (private keys AND authorized_keys for persistence)
  • Browser profiles: ~/.mozilla/firefox/*/logins.json, ~/.config/google-chrome/*/Login Data

SSH agent forwarding hijack

If another user has agent forwarding enabled: find /tmp -name "agent.*" → SSH_AUTH_SOCK=/tmp/agent.XXXX ssh target

相似的 Skill

agent-security-hardening

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

精选

ponytail-audit

审计整个代码库,找出 bug、安全漏洞和性能瓶颈,获得按重要性排序的通俗报告。

DIDietrichGebert/ponytail202k近 7 天新增 4,226 个 star

gstack

GAgarrytan/gstack143k近 7 天新增 524 个 star

精选

security-and-hardening

按 OWASP Top 10 检查输入处理、登录和依赖,加固代码。

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

doubt-driven-development

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

ruview-rvagent

RUruvnet/RuView106k近 7 天新增 596 个 star