How can I execute C# code during XSLT transformation and use it for shellcode execution?
XSLT files can contain embedded C# code inside `<msxsl:script>` blocks, which executes during XML transformation by .NET's XslCompiledTransform. This allows arbitrary code execution, including shellcode when combined with techniques like [using VirtualAlloc to bypass DEP](/news/windows-shellcode-study-notes-bypassing-dep-with-virtualalloc). The article's POC demonstrates launching calc.exe via an XSLT file. For more, refer to [Study Notes Weekly No.4](/news/study-notes-weekly-no-4-use-tracker-to-load-dll-use-csi-to-bypass-umci-execute-c-from-xslt-file).