通过PowerShell命令查找进程加载了DLL:
代码语言:javascript复制ps | ? { $_.Modules.ModuleName -contains 'amsi.dll' }
通过WMI命令识别带有已加载 DLL 的进程:
代码语言:javascript复制gcim CIM_DataFile -Filter 'Drive = "C:" AND Path = "\Windows\System32\" AND FileName = "amsi" AND Extension = "dll"' | gcai -Association CIM_ProcessExecutable
通过wmic.exe 获取具有特定DLL的进程列表
代码语言:javascript复制wmic PATH CIM_DATAFILE WHERE "Drive='C:' AND Path=' \ Windows \ System32 \ ' AND FileName='amsi' AND Extension='dll'" ASSOC:list /ASSOCCLASS:CIM_ProcessExecutable