skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
wgpsec/aboutsecurity58 installs

post-exploit-windows

Windows 系统后渗透全流程。当通过 RCE/webshell/RDP 获取到 Windows shell 后使用。覆盖系统信息收集、UAC 绕过、本地提权、凭据提取(SAM/LSASS/浏览器)、域信息侦察。适用于独立主机和域环境

How do I install this agent skill?

npx skills add https://github.com/wgpsec/aboutsecurity --skill post-exploit-windows
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubfail

    This skill is a post-exploitation toolkit that contains highly dangerous commands for bypassing security controls, escalating privileges, and extracting sensitive credentials. Automated scanners have flagged one of the reference files as containing malicious patterns associated with Trojans and PowerShell agents.

  • Socketfail

    7 alerts: gptMalware, gptSecurity

  • Snykwarn

    Risk: MEDIUM · 1 issue

What does this agent skill do?

Windows 后渗透方法论

⛔ 深入参考(必读)


Phase 1: 基础信息收集

whoami /all                 # 用户、组、权限(关键!看有没有 SeImpersonate)
systeminfo                  # 系统版本、补丁、域信息
ipconfig /all               # 网络配置(DNS 服务器 = 域控 IP)
net localgroup Administrators

关键权限 → 提权路径

权限提权方法
SeImpersonatePrivilegePotato 系列(GodPotato 兼容性最好)
SeBackupPrivilege读取 SAM/SYSTEM 注册表
SeDebugPrivilegedump LSASS
管理员组但被 UAC 限制fodhelper.exe 绕过

30 秒快速提权检查

#检查项命令提权方法
1Token 权限whoami /privSeImpersonate → Potato
2用户组whoami /groupsAdministrators → UAC 绕过
3服务权限sc qc [service]可写服务二进制 → 替换
4Unquoted Pathwmic service get name,pathname含空格未加引号路径
5AlwaysInstallreg query HKLM\...\InstallerMSI SYSTEM 安装
6自动登录reg query "HKLM\...\Winlogon"DefaultPassword 泄露
7补丁缺失systeminfo内核提权 CVE

快速判断:Web shell 通常有 SeImpersonate → 优先用 Potato 提权。

Phase 2: 提权决策树

当前权限?
├─ 有 SeImpersonate → Potato 提权(最常见)→ [references/windows-privesc.md](references/windows-privesc.md)
├─ 管理员组 + UAC 限制 → UAC 绕过 → [references/windows-privesc.md](references/windows-privesc.md)
├─ 低权限 → 检查服务/AlwaysInstallElevated/内核漏洞 → [references/windows-privesc.md](references/windows-privesc.md)
└─ 已是 SYSTEM/Admin → 直接进入凭据提取

Phase 3: 凭据提取决策树

需要什么凭据?
├─ 本地账户哈希 → SAM 数据库(reg save)
├─ 域凭据/明文密码 → LSASS 内存(Mimikatz / comsvcs.dll)
├─ 浏览器密码 → Chrome Login Data / Firefox logins.json
└─ 其他 → 凭据管理器 cmdkey、PowerShell 历史、config 文件搜索
详细命令 → [references/windows-credential.md](references/windows-credential.md)

Phase 4: 域环境判断

如果 systeminfo 显示 Domain 不是 WORKGROUP → 域环境,需进行域渗透。

注意事项

  • 先收集再提权:whoami /all 的输出决定整个提权路线
  • Potato 系列选择:不确定版本 → GodPotato(最广泛兼容)
  • LSASS dump 替代方案:comsvcs.dll MiniDump 不需要上传 Mimikatz

UAC 绕过

  • fodhelper.exe 等自动提升(auto-elevate)的白名单程序可绕过 UAC

LSASS 转储

  • comsvcs.dll 方法:杀软绕过,不落地文件,LOLBins(系统自带工具)

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/wgpsec/aboutsecurity/post-exploit-windows">View post-exploit-windows on skillZs</a>