# IL_Reflection_Hook **Repository Path**: RichAndyZ/IL_Reflection_Hook ## Basic Information - **Project Name**: IL_Reflection_Hook - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-09-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Sometimes we may want to modify a complied exe/dll without the source code. To archive this, we have 2 options: 1. Modify the file and complie it. 2. Hook at runtime. For first option, we have several tools for it. 1. Use ildasm and ilasm Disassemble the exe by using the following command ildasm /out=file.il My.exe Tweak the IL inside the file.il file Assemble it back again with ilasm file.il 2. Use Reflexil plugin in Reflector or JustDecomplier. It support to edit the IL and save the assembly file. For the second option, we can use EasyHook. Refer to below links: http://easyhook.github.io/index.html https://www.codeproject.com/Articles/463508/NET-CLR-Injection-Modify-IL-Code-during-Run-time Note: 1. For strange name assembly, we need sn tool. 2. Can write code then use tools to generate IL code, like LinqPad.