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/internal-network-protocols.md

View on GitHub
# 内网协议枚举

内网评估中的协议专项测试流程。由 `internal-network.md` 阶段 5 引用,当发现的服务需要协议级测试时使用。

对以下每个协议,应用 `internal-network.md` 阶段 3 中的逐服务测试矩阵和 CVE 评估流程。

(协议专项工具选择参见 `../vulnerability/README.md`。)

## SMB

共享枚举和敏感文件搜索:

```bash
smbmap -H <ip>                           # 匿名共享列表
smbmap -H <ip> -r                        # 递归列出所有共享
enum4linux-ng -A -oA enum4linux <ip>     # 全面 SMB/NetBIOS 枚举
nbtscan <CIDR>                           # 跨子网 NetBIOS 名称
nxc smb <ip>                             # 检查 SMB 签名(未签名 = 中继攻击目标)
# 搜索可访问共享中的敏感文件
smbclient //<ip>/<share> -N -c 'recurse ON; prompt OFF; ls'
# 关注:*.kdbx、*.config、*.xml、passwords.*、*.vmdk、*.key、*.pem
```

## MSRPC

RPC 端点枚举(参见 `../exploitation/tools/impacket.md`):

```bash
impacket-rpcdump <ip> | grep -E 'Protocol|Provider'                     # 枚举 RPC 接口
impacket-rpcdump <ip> | grep -i 'MS-RPRN\|MS-EFSR\|MS-DFSNM\|MS-SCMR'   # 检查可用于认证强制的接口
```

## SNMP

Community string 测试和完整遍历(参见 `../vulnerability/tools/onesixtyone.md` 和 `../vulnerability/tools/snmpwalk.md`):

```bash
onesixtyone -c /usr/share/seclists/Discovery/SNMP/common-snmp-community-strings.txt <ip>
snmpwalk -v2c -c public <ip> 1.3.6.1.2.1.1   # 系统信息
snmpwalk -v2c -c public <ip> 1.3.6.1.2.1.25   # 主机资源(进程、软件)
snmpwalk -v2c -c public <ip> 1.3.6.1.4.1.77.1.2.25   # Windows 用户账户
```

## Kerberos

完整 AD 测试交叉参考 `active-directory.md`:

```bash
nmap -p 88 --script krb5-enum-users --script-args krb5-enum-users.realm='<domain>' <dc-ip>
```

## LDAP

匿名绑定和目录枚举:

```bash
nmap -p 389,636 --script ldap-rootdse <ip>
ldapsearch -x -H ldap://<ip> -b '' -s base namingContexts   # 匿名绑定测试
ldapsearch -x -H ldap://<ip> -b 'dc=<domain>,dc=<tld>' '(objectClass=person)' cn mail 2>&1 | head -50
```

## RDP

NLA、加密和已知漏洞:

```bash
nxc rdp <CIDR>
nmap -p 3389 --script rdp-enum-encryption,rdp-ntlm-info <ip>
```

## WinRM

远程管理访问和认证:

```bash
nxc winrm <ip>                                      # 检查 WinRM 可用性和操作系统信息
nxc winrm <ip> -u '' -p ''                          # 测试空认证
evil-winrm -i <ip> -u <user> -p <password>          # 使用有效凭据连接
```

获取凭据后使用 `evil-winrm` 通过 WinRM 获取交互式 PowerShell 访问(参见 `../exploitation/tools/evil-winrm.md`)。

## SSH

算法、认证方式和配置:

```bash
nmap -p 22 --script ssh2-enum-algos,ssh-auth-methods <ip>
ssh -o PreferredAuthentications=none -o StrictHostKeyChecking=no <ip> 2>&1 | grep -i 'authentication'
```

## FTP

匿名访问、敏感文件和可写目录测试:

```bash
nmap -p 21 --script ftp-anon,ftp-bounce,ftp-syst,ftp-vsftpd-backdoor <ip>
# 手动验证匿名访问(nmap 脚本可能因 PASV 问题产生漏报)
curl -s ftp://anonymous:anonymous@<ip>/
# 递归目录列表(发现包含备份文件的子目录)
wget --spider -r --no-remove-listing ftp://anonymous:anonymous@<ip>/ 2>&1 | grep -E 'directory|listing'
# 在可访问目录中搜索敏感文件
curl -s ftp://anonymous:anonymous@<ip>/ | grep -iE '\.(tar|zip|gz|bak|sql|conf|env|key|pem|kdbx)'
# 可写目录测试
curl -s -T /tmp/test_upload.txt ftp://anonymous:anonymous@<ip>/pub/ && echo "WRITABLE"
```

## 数据库服务

```bash
# MySQL 枚举
nmap --script mysql-enum -p 3306 <ip>
mysql -h <ip> -u root -e 'SELECT 1' 2>&1          # 测试直接连接(区分 ACL 阻止与认证错误)
# MSSQL 信息收集
nmap --script ms-sql-info -p 1433 <ip>
impacket-mssqlclient <user>:<password>@<ip> 2>&1  # 交互式会话(检查 sysadmin、xp_cmdshell、链接服务器)
# PostgreSQL 连接测试
nmap --script pgsql-brute -p 5432 <ip>
psql -h <ip> -U postgres -c '\l' 2>&1             # 测试直接连接
```

获取凭据后使用 `mssqlpwner` 进行 MSSQL 链接服务器利用和提权(参见 `../exploitation/tools/mssqlpwner.md`)。

## 邮件

SMTP 中继测试和用户枚举:

```bash
nmap --script smtp-open-relay -p 25 <ip>
smtp-user-enum -M VRFY -U /usr/share/seclists/Usernames/Names/names.txt -t <ip>
# SMTP 中继和认证测试
swaks --to test@<target> --from test@attacker.com --server <ip>
swaks --to test@<target> --server <ip> --auth LOGIN --auth-user <user> --auth-password <pass>
```

使用 `swaks` 进行灵活的 SMTP 中继和认证测试(参见 `../vulnerability/tools/swaks.md`)。使用 `smtp-user-enum` 进行 VRFY/EXPN/RCPT 用户枚举(参见 `../vulnerability/tools/smtp-user-enum.md`)。

## NFS

导出枚举和访问测试:

```bash
showmount -e <ip>                       # 列出导出的共享
# 挂载并枚举(如果可访问)
mkdir -p /tmp/nfs_mount && mount -t nfs <ip>:/<export> /tmp/nfs_mount
```

## IPMI

基板管理控制器访问:

```bash
nmap --script ipmi-version -p 623 -sU <ip>
ipmitool -I lanplus -H <ip> -U admin -P admin chassis status
ipmitool -I lanplus -H <ip> -U admin -P admin user list 1
```

## Redis / NoSQL

未授权访问和数据枚举:

```bash
nmap -p 6379 --script redis-info,redis-brute <ip>
redis-cli -h <ip> ping                  # 测试未授权命令访问
redis-cli -h <ip> INFO keyspace         # 枚举数据库和键数量
redis-cli -h <ip> CONFIG GET requirepass # 检查认证状态
redis-cli -h <ip> CONFIG GET dir        # 检查写入能力(目录可写 = 可利用)
redis-cli -h <ip> CONFIG GET dbfilename # 当前转储文件名
# 如果 CONFIG 可访问且无需认证:可进行 SSH 密钥注入、Webshell 写入或 cron 利用
# 利用步骤参见 ../exploitation/README.md 路径 3(Redis 可写)
nmap -p 27017 --script mongodb-info,mongodb-databases <ip>
```

## 未列出服务

对于以上协议部分未涵盖的服务(如 VNC、Telnet、Elasticsearch、Java RMI、Oracle TNS),应用逐服务测试矩阵:使用 `nmap` 版本检测和 NSE 脚本探测服务,测试未认证访问,通过 `searchsploit` 和 `getsploit` 检查已知 CVE,尝试默认凭据。对于获得凭据的数据库服务,检查操作系统命令执行能力。

## 交叉引用

- `internal-network.md` — 父 playbook;本文件由其阶段 5 调用,逐服务测试矩阵、CVE 评估和深度指令位于其阶段 3。
- `active-directory.md` — 当 Kerberos、LDAP 或 SMB 枚举发现域环境时,切换到该 playbook 进行完整的 AD 测试。
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: 194kUpdated Claude CodeCodexVerifiedInstall