mscoree.dll, RunDll32ShimW lolbin
通过修改COMPlus_InstallRoot环境变量指向自定义目录,并将payload放置在相应子目录中,利用rundll32.exe和mscoree.dll的RunDll32ShimW函数实现payload的侧载加载。 2025-5-31 23:9:23 Author: www.hexacorn.com(查看原文) 阅读量:12 收藏

Executing this function via rundll32.exe leads to loading of mscoreei.dll from one of the default .NET directories.

However…

The RunDll32ShimW function takes into account the value of the environmental variable COMPlus_InstallRoot when it searches for the mscoreei.dll file.

So…

If we change the value of the COMPlus_InstallRoot variable to point to a directory of our choice, place the payload in a subdirectory associated with the .NET version installed on the system, we can sideload our payload like this:

set COMPLUS_InstallRoot=c:\test\
rundll32.exe mscoree.dll, RunDll32ShimW

文章来源: https://www.hexacorn.com/blog/2025/05/31/mscoree-dll-rundll32shimw-lolbin/
如有侵权请联系:admin#unsafe.sh