I'm currently building a rat in C#, however I have ran into one major issue. How the hell can I inject settings into an already compiled exe file? I have seen many people saying don't use EOF. So now I'm sitting here clueless to how to fix this issue. Is there another method of doing this that I don't know?
|
C#
How do I Inject Settings Into An EXE File? |
|
There's several of ways to do that. But if you have access to the source then you could also modify a source file programmatically before compiling it on the fly. You can use CodeDOM for that.
Mar 8, 2019 04:23 PM
(This post was last modified: Mar 8, 2019 08:27 PM by gigajew.)
This is one way: https://hackforums.net/showthread.php?tid=5944333
And yet another way is reflecting the module with dnlib and changing the variables. This is the most reliable way ![]() (Mar 8, 2019 11:50 PM)SoonTM Wrote: Check out dnlib (Can't post links). You can easily modify compiled .net applications with it. (Mar 8, 2019 04:23 PM)gigajew Wrote: This is one way: (Can't post links) Thank you both for the suggestion. The issue is resolved. I didn't even know dnlib existed. I ended up developing a class with dnlib that changes the variables of the stub, you guys are legend! 🤝 (Mar 9, 2019 03:30 PM)VelvetCoding Wrote: Thank you both for the suggestion. The issue is resolved. I didn't even know dnlib existed. I ended up developing a class with dnlib that changes the variables of the stub, you guys are legend! 🤝 No problem. Good luck with your project. ✌ |
|
|



![[Image: Syr3DlV.png]](https://i.imgur.com/Syr3DlV.png)